fix: fix dropping any items being considered as dropping the egg
This commit is contained in:
parent
0bc668fc50
commit
1ef334318f
1 changed files with 5 additions and 5 deletions
|
|
@ -56,11 +56,11 @@ public class InventoryListener implements Listener {
|
|||
Item item = event.getItemDrop();
|
||||
ItemStack stack = item.getItemStack();
|
||||
|
||||
// Check if the dropped item is the egg
|
||||
if (Egg.hasEgg(stack)) {
|
||||
if (config.resetOwnerOnDrop()) {
|
||||
EggController.eggDropped(config, data, logger);
|
||||
} else {
|
||||
// Check if the dropped item is the egg
|
||||
if (Egg.hasEgg(stack)) {
|
||||
data.setEggOwner(event.getPlayer(), config);
|
||||
data.updateEggLocation(item);
|
||||
EggController.makeEggInvulnerable(event.getItemDrop(), config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue