mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
parent
be3c7a81b1
commit
e75a0ee64e
1 changed files with 7 additions and 2 deletions
|
@ -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){
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue