Merge pull request #772 from Lomeli12/master

Villager Trading GUI will now not open if Player is sneaking. Allowing for bypassing of the GUI.
This commit is contained in:
LexManos 2013-09-30 16:01:51 -07:00
commit d3c80c326a

View file

@ -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)
{