Fix equipment slots for items when right clicked, and dispensed using a dispensor.
This commit is contained in:
parent
a30584cb64
commit
71127d1cc0
2 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
--- ../src_base/minecraft/net/minecraft/item/BehaviorDispenseArmor.java
|
||||||
|
+++ ../src_work/minecraft/net/minecraft/item/BehaviorDispenseArmor.java
|
||||||
|
@@ -31,7 +31,7 @@
|
||||||
|
int i1 = EntityLiving.func_82159_b(par2ItemStack);
|
||||||
|
ItemStack itemstack1 = par2ItemStack.copy();
|
||||||
|
itemstack1.stackSize = 1;
|
||||||
|
- entityliving.setCurrentItemOrArmor(i1 - l, itemstack1);
|
||||||
|
+ entityliving.setCurrentItemOrArmor(i1, itemstack1); //Forge: Vanilla bug fix associated with fixed setCurrentItemOrArmor indexs for players.
|
||||||
|
entityliving.func_96120_a(i1, 2.0F);
|
||||||
|
--par2ItemStack.stackSize;
|
||||||
|
return par2ItemStack;
|
11
patches/minecraft/net/minecraft/item/ItemArmor.java.patch
Normal file
11
patches/minecraft/net/minecraft/item/ItemArmor.java.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- ../src_base/minecraft/net/minecraft/item/ItemArmor.java
|
||||||
|
+++ ../src_work/minecraft/net/minecraft/item/ItemArmor.java
|
||||||
|
@@ -218,7 +218,7 @@
|
||||||
|
|
||||||
|
if (itemstack1 == null)
|
||||||
|
{
|
||||||
|
- par3EntityPlayer.setCurrentItemOrArmor(i, par1ItemStack.copy());
|
||||||
|
+ par3EntityPlayer.setCurrentItemOrArmor(i + 1, par1ItemStack.copy()); //Forge: Vanilla bug fix associated with fixed setCurrentItemOrArmor indexs for players.
|
||||||
|
par1ItemStack.stackSize = 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue