mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
fix an exception on loading some tileentities
This commit is contained in:
parent
000edcaacb
commit
86aeada330
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
|
|||
}
|
||||
|
||||
public final void sendUpdate(){
|
||||
if(!this.world.isRemote){
|
||||
if(this.world != null && !this.world.isRemote){
|
||||
NBTTagCompound compound = new NBTTagCompound();
|
||||
this.writeSyncableNBT(compound, NBTType.SYNC);
|
||||
|
||||
|
|
Loading…
Reference in a new issue