1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-23 16:44:50 +00:00

Mark computers as changed when changing on state

Previously they were not marked as such, meaning computer state was not
broadcast to the client until blinking state changed.
This commit is contained in:
SquidDev
2017-11-19 15:09:33 +00:00
parent 8fb3ae405f
commit 893524b0a8
2 changed files with 12 additions and 10 deletions

View File

@@ -100,8 +100,7 @@ public class ServerComputer extends ServerTerminal
super.update();
m_computer.advance( 0.05 );
m_changedLastFrame = m_changed || m_computer.pollChanged();
m_computer.clearChanged();
m_changedLastFrame = m_computer.pollAndResetChanged() || m_changed;
m_changed = false;
m_ticksSincePing++;