From a7a76cc8618196f13df93e0eefd3bfa236cbff4d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 10 May 2016 19:00:35 +0200 Subject: [PATCH] Dang it, now it's right --- .../actuallyadditions/mod/tile/TileEntitySmileyCloud.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntitySmileyCloud.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntitySmileyCloud.java index a893ca60f..839960dba 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntitySmileyCloud.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntitySmileyCloud.java @@ -42,7 +42,8 @@ public class TileEntitySmileyCloud extends TileEntityBase implements IStringReac public void updateEntity(){ super.updateEntity(); if(!this.worldObj.isRemote){ - if(((this.nameBefore == null && this.name != null) || !this.nameBefore.equals(this.name)) && this.sendUpdateWithInterval()){ + boolean nameChanged = this.name != null ? !this.name.equals(this.nameBefore) : this.nameBefore != null; + if(nameChanged && this.sendUpdateWithInterval()){ this.nameBefore = this.name; this.markDirty(); }