Jump to content

Packet24MobSpawn / cast to byte


rivvest

Recommended Posts

As discussed here, and also over at MCF, certain combinations of mods can result in a crash when a mob with a higher entity type ID is spawned.  I managed to work around this by removing the cast to byte on line 55 of Packet24MobSpawn.java, which made me feel very, very dirty.

this.type = (byte)EntityList.getEntityID(par1EntityLiving);

I googled a bit, but couldn't find any definite information on the potential impact of this, though I did find an MCF post from August saying that Forge supported higher entity IDs.  This made me wonder if the mod authors were using some older ModLoader-style spawning methods instead of the native Forge methods, or if I'm just misunderstanding and need to limit the number of mobs I put into my game.

 

Thanks for any insight!

I'm fixing the stupid villagers.  http://www.minecraftforum.net/topic/1588460-

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.



×
×
  • Create New...

Important Information

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