Kashdeya / Tiny-Progressions

17 stars 17 forks source link

Watering Can multiplayer behaviour #133

Closed Someoneamzing closed 4 years ago

Someoneamzing commented 5 years ago

When multiple players have watering cans in their inventory cans cannot be activated, and one player sneaking while another right clicks will activate the sneaking players watering can.

Have seen this in multiple mod packs including Project Ozone 3 and Sky Factory 4.

Running on a LAN World with two players. Both have a watering can.

Have done some testing and it seems that when the last player to pick up a watering can tries to activate the can, it activates for a split second, and then deactivates. It appears to happen in less than a frame in some cases as the item flickers with the enchanted 'glow'.

If one player activates their watering can while the other is holding it in their hand, both watering cans are activated.

If the other player shift right clicks both cans are deactivated.

It seems as though there is some sort of global state for the cans that isn't working with multiple players.

Someoneamzing commented 5 years ago

Also, unless both players are holding watering cans, no one can activate a can.