From c0164f29cd8101eaa3cf295714ea93e61303365b Mon Sep 17 00:00:00 2001 From: Lomeli12 Date: Tue, 10 Sep 2013 14:08:29 -0700 Subject: [PATCH] Villager Trading GUI will not open if Player is sneaking. --- .../entity/passive/EntityVillager.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch diff --git a/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch b/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch new file mode 100644 index 000000000..ab69a14ae --- /dev/null +++ b/patches/minecraft/net/minecraft/entity/passive/EntityVillager.java.patch @@ -0,0 +1,11 @@ +--- ../src_base/minecraft/net/minecraft/entity/passive/EntityVillager.java ++++ ../src_work/minecraft/net/minecraft/entity/passive/EntityVillager.java +@@ -205,7 +205,7 @@ + ItemStack itemstack = par1EntityPlayer.inventory.getCurrentItem(); + boolean flag = itemstack != null && itemstack.itemID == Item.monsterPlacer.itemID; + +- if (!flag && this.isEntityAlive() && !this.isTrading() && !this.isChild()) ++ if (!flag && this.isEntityAlive() && !this.isTrading() && !this.isChild() && !par1EntityPlayer.isSneaking()) + { + if (!this.worldObj.isRemote) + {