diff --git a/src/main/java/ru/dbotthepony/mc/otm/item/ItemPill.java b/src/main/java/ru/dbotthepony/mc/otm/item/ItemPill.java index fc80b631e..eb0f76fa3 100644 --- a/src/main/java/ru/dbotthepony/mc/otm/item/ItemPill.java +++ b/src/main/java/ru/dbotthepony/mc/otm/item/ItemPill.java @@ -84,12 +84,14 @@ public class ItemPill extends Item { return super.finishUsingItem(stack, level, ply); if (this.pill_type == PillType.BECOME_ANDROID && !((AndroidCapabilityPlayer) resolver.get()).isEverAndroid()) { - stack.shrink(1); + if (!ply.getAbilities().instabuild) + stack.shrink(1); if (ply instanceof ServerPlayer) ((AndroidCapabilityPlayer) resolver.get()).becomeAndroidSoft(); } else if (this.pill_type == PillType.BECOME_HUMANE && resolver.get().isAndroid()) { - stack.shrink(1); + if (!ply.getAbilities().instabuild) + stack.shrink(1); if (ply instanceof ServerPlayer) ((AndroidCapabilityPlayer) resolver.get()).becomeHumaneAndKill();