try to avoid creating an nbt tag where its only going to be read

This commit is contained in:
Thiakil authored and Dave Smith committed 2019-02-26 06:43:19 -07:00
1 parent 4f7db32e6f
commit da0497b8f1
4 files changed
+24 -4

No files matched your search

@@ -289,7 +289,7 @@ public class TileEntityFactory extends TileEntityMachine implements IComputerInt
upgradeComponent.write(ItemDataUtils.getDataMap(returnStack));
upgradeComponent.setSupported(Upgrade.GAS, toSet.fuelEnergyUpgrades());
upgradeComponent.read(ItemDataUtils.getDataMap(inventory.get(2)));
upgradeComponent.read(ItemDataUtils.getDataMapIfPresentNN(inventory.get(2)));
inventory.set(2, ItemStack.EMPTY);
inventory.set(3, returnStack);