diff options
Diffstat (limited to 'src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java')
-rw-r--r-- | src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java b/src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java index 233205a..ceac6eb 100644 --- a/src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java +++ b/src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java @@ -58,9 +58,6 @@ public class EyeOfNetherItem extends Item { } if (pos_pair != null) { user.swingHand(hand, true); - if (!user.getAbilities().creativeMode) { - stack.decrement(1); - } // Worth changing this and the sound/event if/when that gets replaced with a // custom entity. @@ -90,6 +87,10 @@ public class EyeOfNetherItem extends Item { GameEvent.Emitter.of(user)); user.incrementStat(Stats.USED.getOrCreateStat(this)); + if (!user.getAbilities().creativeMode) { + stack.decrement(1); + } + return TypedActionResult.success(stack); } } |