Guigui220D / buildoland-3

After BuildOLand 1, BuildOLand 2, here comes BuildOLand 3!
7 stars 1 forks source link

Prevent inventory desynchronisations #46

Closed Guigui220D closed 4 years ago

Guigui220D commented 4 years ago

If packets are lost or in wrong order, the inventory could be completely desynchronized and it could be very confusing for the player, he wouldn't have a way to know.

Guigui220D commented 4 years ago

It's still not perfect but it's good enough for the moment

Guigui220D commented 4 years ago

Inventory rectification is too strict : two stacks could be equivalent, for example amount being 0, but the game could rectify

Guigui220D commented 4 years ago

If the player tries to use something he doesn't have in his hand but an other place in his inventory, we should be more understanding and accept the use but rectify the inventory.

Guigui220D commented 4 years ago

If the player tries to use something he doesn't have in his hand but an other place in his inventory, we should be more understanding and accept the use but rectify the inventory.

8123ca3397a80b0de0602415a564d8fc840d61cc tried to do just this