aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/ski/kramkow/mcmod/eyeofnether/EyeOfNetherItem.java7
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);
}
}