From 5c297cc9d26fde7677dd7e7113a4bb38a1965a8b Mon Sep 17 00:00:00 2001 From: reobf <117543727+reobf@users.noreply.github.com> Date: Sat, 28 Sep 2024 00:04:04 +0800 Subject: [PATCH] do not set 'aStoredEU' when saving tile --- .../common/tileentities/storage/MTEEnergyBuffer.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/MTEEnergyBuffer.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/MTEEnergyBuffer.java index ed4ff6b4cab..db02fe2af77 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/MTEEnergyBuffer.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/storage/MTEEnergyBuffer.java @@ -252,14 +252,6 @@ public boolean isAccessAllowed(final EntityPlayer aPlayer) { @Override public void saveNBTData(final NBTTagCompound aNBT) { aNBT.setByte("aCurrentOutputAmperage", aCurrentOutputAmperage); - long aEU = this.getBaseMetaTileEntity() - .getStoredEU(); - if (aEU > 0) { - aNBT.setLong("aStoredEU", aEU); - if (aNBT.hasKey("aStoredEU")) { - Logger.WARNING("Set aStoredEU to NBT."); - } - } } @Override