Skip to content

Don't tick afk on utility/broken packets - #220

Merged
Dream-Master merged 2 commits into
GTNewHorizons:masterfrom
Niki4tap:master
Sep 3, 2026
Merged

Don't tick afk on utility/broken packets#220
Dream-Master merged 2 commits into
GTNewHorizons:masterfrom
Niki4tap:master

Conversation

@Niki4tap

@Niki4tap Niki4tap commented Sep 2, 2026

Copy link
Copy Markdown

Summary

This PR stops ticking the afk timer on utility or broken client packets that opencomputers' server recieves.

Some more context

In my playthrough (GTNH 2.8.4), building an oc computer just breaks the afk detection in like 4-5 chunk radius, I narrowed it down to TextBufferInit packet from opencomputers mod, which does not seem to be a result of any player interaction and is sent very frequently for seemingly no reason. Not sure what's the real underlying issue on why it is being sent so much, nor have I dug deep enough to understand the use of it, but it 100% should not tick the afk timer.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@hinyb hinyb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I pushed a quick commit to include RobotStateRequest to save us a round trip. Thanks for the contribution!

@Dream-Master
Dream-Master merged commit 411159f into GTNewHorizons:master Sep 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants