mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 13:09:59 +00:00
Fix equipment slots for items when right clicked, and dispensed using a dispensor.
This commit is contained in:
1 parent
a30584cb64
commit
71127d1cc0
2 files changed
+22
No files matched your search
@@ -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;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user