mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Update mappings to 09/21 snapshots.
Conflict with getMatrix in ITransformation, so renamed to getMatrixVec.
This commit is contained in:
1 parent
5ed03945a0
commit
94e1a8e0a4
210 files changed
+1052
-978
No files matched your search
@@ -50,8 +50,8 @@ public class CapabilityItemHandler
|
||||
if (!stack.isEmpty())
|
||||
{
|
||||
NBTTagCompound itemTag = new NBTTagCompound();
|
||||
itemTag.setInteger("Slot", i);
|
||||
stack.writeToNBT(itemTag);
|
||||
itemTag.setInt("Slot", i);
|
||||
stack.write(itemTag);
|
||||
nbtTagList.add(itemTag);
|
||||
}
|
||||
}
|
||||
@@ -67,12 +67,12 @@ public class CapabilityItemHandler
|
||||
NBTTagList tagList = (NBTTagList) base;
|
||||
for (int i = 0; i < tagList.size(); i++)
|
||||
{
|
||||
NBTTagCompound itemTags = tagList.getCompoundTagAt(i);
|
||||
int j = itemTags.getInteger("Slot");
|
||||
NBTTagCompound itemTags = tagList.getCompound(i);
|
||||
int j = itemTags.getInt("Slot");
|
||||
|
||||
if (j >= 0 && j < instance.getSlots())
|
||||
{
|
||||
itemHandlerModifiable.setStackInSlot(j, ItemStack.func_199557_a(itemTags));
|
||||
itemHandlerModifiable.setStackInSlot(j, ItemStack.read(itemTags));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user