mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
try to avoid creating an nbt tag where its only going to be read
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user