Fix dispensers equipping armor on players in the wrong slot Closes #1649

This commit is contained in:
LexManos committed 2015-12-09 21:03:02 -08:00
1 parent 6243d2ca4c
commit c6aa04325e
1 file changed
+9
@@ -1,5 +1,14 @@
--- ../src-base/minecraft/net/minecraft/item/ItemArmor.java
+++ ../src-work/minecraft/net/minecraft/item/ItemArmor.java
@@ -40,7 +40,7 @@
if (list.size() > 0)
{
EntityLivingBase entitylivingbase = (EntityLivingBase)list.get(0);
- int l = entitylivingbase instanceof EntityPlayer ? 1 : 0;
+ int l = 0;// Forge: We fix the indexes. Mojang Stop hard coding this!
int i1 = EntityLiving.func_82159_b(p_82487_2_);
ItemStack itemstack1 = p_82487_2_.func_77946_l();
itemstack1.field_77994_a = 1;
@@ -221,7 +221,7 @@
if (itemstack1 == null)