From e55c465baef38bbfb0684bf20d2e4b87aa166705 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 2 Apr 2024 03:51:48 +0200 Subject: Only trade with potato villager --- .../java/moe/nea/potatocrime/mixin/ShillCarrotsToVillagerPatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); -- cgit