mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Dang it, now it's right
This commit is contained in:
parent
1c9038d703
commit
a7a76cc861
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue