08-12-2012, 03:33 AM
Minecraft is weird.
I'm implementing shift+click support in the survival inventory and I've found out that the client tries to guess things ahead of the server: I made shift+clicking armor move it into the armor slot, but the 1.2.5 client doesn't do that, so shift+clicking an armor item actually duplicates the armor on the client - one goes into the armor slot (server-initiated) and another goes to the hotbar (client-initiated). All hell breaks loose then, because the window is out of sync with the client.
I'm implementing shift+click support in the survival inventory and I've found out that the client tries to guess things ahead of the server: I made shift+clicking armor move it into the armor slot, but the 1.2.5 client doesn't do that, so shift+clicking an armor item actually duplicates the armor on the client - one goes into the armor slot (server-initiated) and another goes to the hotbar (client-initiated). All hell breaks loose then, because the window is out of sync with the client.