Fix recent issue with item inventories potentially losing items

This commit is contained in:
mezz committed 2015-06-16 21:14:33 -07:00
1 parent f6d8005e03
commit 4cf7fd84b9
1 file changed
+3 -2
@@ -145,12 +145,12 @@ public abstract class ItemInventory implements IInventory, IFilterSlotDelegate {
}
}
migrateToNewNBT();
writeToParentNBT();
}
}
}
private void migrateToNewNBT() {
private void writeToParentNBT() {
ItemStack parent = getParent();
if (parent == null) {
return;
@@ -254,6 +254,7 @@ public abstract class ItemInventory implements IInventory, IFilterSlotDelegate {
@Override
public final void markDirty() {
writeToParentNBT();
}
@Override