mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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(TileEntityDisplayStand.class, "DisplayStand");
|
||||||
register(TileEntityShockSuppressor.class, "ShockSuppressor");
|
register(TileEntityShockSuppressor.class, "ShockSuppressor");
|
||||||
register(TileEntityEmpowerer.class);
|
register(TileEntityEmpowerer.class);
|
||||||
|
register(TileEntityLaserRelayFluids.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void register(Class<? extends TileEntityBase> tileClass, String legacyName){
|
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){
|
public void writeSyncableNBT(NBTTagCompound compound, NBTType type){
|
||||||
|
if(type != NBTType.SAVE_BLOCK){
|
||||||
super.writeToNBT(compound);
|
super.writeToNBT(compound);
|
||||||
|
}
|
||||||
|
|
||||||
if(type == NBTType.SAVE_TILE){
|
if(type == NBTType.SAVE_TILE){
|
||||||
compound.setBoolean("Redstone", this.isRedstonePowered);
|
compound.setBoolean("Redstone", this.isRedstonePowered);
|
||||||
|
@ -190,7 +193,9 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void readSyncableNBT(NBTTagCompound compound, NBTType type){
|
public void readSyncableNBT(NBTTagCompound compound, NBTType type){
|
||||||
|
if(type != NBTType.SAVE_BLOCK){
|
||||||
super.readFromNBT(compound);
|
super.readFromNBT(compound);
|
||||||
|
}
|
||||||
|
|
||||||
if(type == NBTType.SAVE_TILE){
|
if(type == NBTType.SAVE_TILE){
|
||||||
this.isRedstonePowered = compound.getBoolean("Redstone");
|
this.isRedstonePowered = compound.getBoolean("Redstone");
|
||||||
|
|
Loading…
Reference in a new issue