mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-29 21:02:59 +00:00
Send the terminal state to the pocket computer's player
As we only send the terminal to players using the GUI, the map interface was never updated. We now will also send the terminal state to whoever has the computer in their inventory. This also marks the terminal as dirty when a new player picks the pocket computer up, hopefully preventing any desync issues which might occur then. Fixes #42.
This commit is contained in:
@@ -54,6 +54,11 @@ public class ServerTerminal implements ITerminal
|
||||
}
|
||||
}
|
||||
|
||||
protected void markTerminalChanged()
|
||||
{
|
||||
m_terminalChanged = true;
|
||||
}
|
||||
|
||||
public void update()
|
||||
{
|
||||
m_terminalChangedLastFrame = m_terminalChanged || (m_terminal != null && m_terminal.getChanged());
|
||||
|
||||
Reference in New Issue
Block a user