Jump to content

[1.7.10] func_145881_a().setEntityName() not updating spawner display entity


Mattasdqwe

Recommended Posts

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);

			}

		}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.