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");