diff --git a/src/main/java/net/serenas/shitmod/kingsoul.java b/src/main/java/net/serenas/shitmod/kingsoul.java index d52f1ad..f484f02 100644 --- a/src/main/java/net/serenas/shitmod/kingsoul.java +++ b/src/main/java/net/serenas/shitmod/kingsoul.java @@ -1,5 +1,7 @@ package net.serenas.shitmod; +import java.io.Console; + import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectInstance; import net.minecraft.entity.player.PlayerEntity; @@ -16,9 +18,11 @@ public class kingsoul extends Item { super(settings); } + + @Override - public TypedActionResult use(World world, PlayerEntity playerentity, Hand hand) { - boolean kingSoulActive = false; + public TypedActionResult use(World world, PlayerEntity PlayerEntity, Hand hand) { + boolean kingSoulActive; if (kingSoulActive == true) { kingSoulActive = false; @@ -26,13 +30,14 @@ public class kingsoul extends Item { kingSoulActive = true; } - return new TypedActionResult(ActionResult.SUCCESS, playerentity.getStackInHand(hand)); + return new TypedActionResult(ActionResult.SUCCESS, PlayerEntity.getStackInHand(hand)); } - @Override - public void + + + if (kingSoulActive == true) { - return new kingsoulEffect(); + new kingsoulEffect(); } }