From e75a0ee64ef7c13d04c04469995bfa7e35a38944 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 1 Sep 2016 20:41:50 +0200 Subject: [PATCH] I'M SO STUPID. Closes #225 and #223 --- .../actuallyadditions/mod/tile/TileEntityBase.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java index 8c9bb2035..96824aca0 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java @@ -104,6 +104,7 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{ register(TileEntityDisplayStand.class, "DisplayStand"); register(TileEntityShockSuppressor.class, "ShockSuppressor"); register(TileEntityEmpowerer.class); + register(TileEntityLaserRelayFluids.class); } private static void register(Class tileClass, String legacyName){ @@ -178,7 +179,9 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{ } public void writeSyncableNBT(NBTTagCompound compound, NBTType type){ - super.writeToNBT(compound); + if(type != NBTType.SAVE_BLOCK){ + super.writeToNBT(compound); + } if(type == NBTType.SAVE_TILE){ compound.setBoolean("Redstone", this.isRedstonePowered); @@ -190,7 +193,9 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{ } public void readSyncableNBT(NBTTagCompound compound, NBTType type){ - super.readFromNBT(compound); + if(type != NBTType.SAVE_BLOCK){ + super.readFromNBT(compound); + } if(type == NBTType.SAVE_TILE){ this.isRedstonePowered = compound.getBoolean("Redstone");