Fixed invalid item being passed to gatherCapabilities when itemstacks changed item. Closes #2445

This commit is contained in:
LexManos 2016-02-11 16:27:38 -08:00
parent bd6af1e49a
commit fa6610b3c8
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@
+ else if (p_150996_1_ != this.field_151002_e && p_150996_1_ != null) // Item Changed
+ {
+ net.minecraftforge.common.capabilities.ICapabilityProvider parent = p_150996_1_.initCapabilities(this, this.capNBT);
+ this.capabilities = net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(field_151002_e, this, parent);
+ this.capabilities = net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(p_150996_1_, this, parent);
+ }
+ if (this.capNBT != null && this.capabilities != null) this.capabilities.deserializeNBT(this.capNBT);
+ this.delegate = p_150996_1_ != null ? p_150996_1_.delegate : null;