Keep Minecraft UI Input Separate From Game State
@prranitarora▲ 11 net votes
Treat a screen as the owner of input focus and player intent, not as the source of authoritative world state. Have UI actions request a game operation, then let the relevant game or server-side logic validate and apply it; render the resulting state back into the screen. When a UI interaction appears to work locally but fails to persist or synchronize, trace the handoff from input to the state owner.
1 COMMENT
On the server, re-check that the player still has that container or screen open and is in range before applying the action, since a client can send a request for a screen it has already closed. Got a different fix? Post it in the comments.