Merge pull request #227 from CovertJaguar/patch-1
Improved Entity Spawn Error
This commit is contained in:
commit
3d5658b90f
1 changed files with 1 additions and 2 deletions
|
@ -184,8 +184,7 @@ public class EntitySpawnPacket extends FMLPacket
|
|||
ModContainer mc = nmh.getContainer();
|
||||
|
||||
EntityRegistration registration = EntityRegistry.instance().lookupModSpawn(mc, modEntityId);
|
||||
Class<? extends Entity> cls = registration.getEntityClass();
|
||||
if (cls == null)
|
||||
if (registration == null || registration.getEntityClass() == null)
|
||||
{
|
||||
FMLLog.log(Level.WARNING, "Missing mod entity information for %s : %d", mc.getModId(), modEntityId);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue