mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Villager Trading GUI will not open if Player is sneaking.
This commit is contained in:
1 parent
519da32391
commit
c0164f29cd
1 file changed
+11
@@ -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)
|
||||
{
|
||||
Reference in new issue
Block a user