I'M SO STUPID.

Closes #225 and #223
This commit is contained in:
Ellpeck 2016-09-01 20:41:50 +02:00
parent be3c7a81b1
commit e75a0ee64e

View file

@ -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<? extends TileEntityBase> tileClass, String legacyName){
@ -178,7 +179,9 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
}
public void writeSyncableNBT(NBTTagCompound compound, NBTType type){
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){
if(type != NBTType.SAVE_BLOCK){
super.readFromNBT(compound);
}
if(type == NBTType.SAVE_TILE){
this.isRedstonePowered = compound.getBoolean("Redstone");