The title pretty much says it all
I am trying to change a spawner and while it does spawn the right entities after the change, the spinning display entity doesn't change unless it is hit with a sword in creative, or I relog.
here is the code:
String mobName = contents.stackTagCompound.getString("MobName");
TileEntity TEAbove = worldObj.getTileEntity(this.xCoord, this.yCoord + 1, this.zCoord);
if(TEAbove instanceof TileEntityMobSpawner) {
TileEntityMobSpawner TEspawner = (TileEntityMobSpawner)TEAbove;
if(TEspawner.func_145881_a().getEntityNameToSpawn() != mobName) {
TEspawner.func_145881_a().setEntityName(mobName);
}
}