HyperSMP / EggHuntPlugin

Minecraft plugin adding the ability to track and steal the Dragon Egg from other players
6 stars 3 forks source link

Transfer between inventories with donkey #2

Closed J0hnL0cke closed 3 years ago

J0hnL0cke commented 3 years ago

When the egg is put into a donkey chest, the plugin should update the location of the egg as the donkey moves, but I don't know how to check if the inventory being placed into is a donkey. Putting the egg into a donkey chest makes the entity null, which causes a null pointer exception when trying to get the egg's location with commands

Consider: do not allow egg to be interacted when non-player inventory is open. (maybe do a switch statement on interacts, so most inventory types can be used to interact with the egg, but the default statement disallows it)