diff options
-rw-r--r-- | src/main/java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java b/src/main/java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java index f4e3079..205f51d 100644 --- a/src/main/java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java +++ b/src/main/java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java @@ -30,7 +30,7 @@ public abstract class ShillCarrotsToVillagerPatch extends MerchantEntity { @Inject(method = "interactMob", at = @At("HEAD"), cancellable = true) private void onInteractMob(PlayerEntity player, Hand hand, CallbackInfoReturnable<ActionResult> cir) { var itemInHand = player.getStackInHand(hand); - if (this.isAlive() && !this.hasCustomer() && !this.isSleeping()) { + if (this.isAlive() && !this.hasCustomer() && !this.isSleeping() && this.method_58842()) { // method_58842 = isPotato if (itemInHand.isOf(Items.CARROT)) { if (!isClient()) { playSound(SoundEvents.ENTITY_VILLAGER_TRADE); |