Made the smiley cloud not continuously mark dirty

This commit is contained in:
Ellpeck 2016-05-10 18:57:26 +02:00
parent 3b0b6dab54
commit 1c9038d703

View file

@ -42,7 +42,7 @@ public class TileEntitySmileyCloud extends TileEntityBase implements IStringReac
public void updateEntity(){
super.updateEntity();
if(!this.worldObj.isRemote){
if((this.nameBefore == null || !this.nameBefore.equals(this.name)) && this.sendUpdateWithInterval()){
if(((this.nameBefore == null && this.name != null) || !this.nameBefore.equals(this.name)) && this.sendUpdateWithInterval()){
this.nameBefore = this.name;
this.markDirty();
}