fix invalid mob spawner nullpointerexception

This commit is contained in:
LAX1DUDE 2022-01-24 22:39:23 -08:00
parent 3d73f98d49
commit 6f06daa2a5

View File

@ -9,7 +9,9 @@ public class TileEntityMobSpawnerRenderer extends TileEntitySpecialRenderer {
TileEntityMobSpawner spawner = (TileEntityMobSpawner) var1;
if(spawner.mobObject == null) {
spawner.mobObject = EntityList.createEntityByName(spawner.mobID, spawner.worldObj);
spawner.mobObject.setWorld(spawner.worldObj);
if(spawner.mobObject != null) {
spawner.mobObject.setWorld(spawner.worldObj);
}
}
if(spawner.mobObject != null) {
EaglerAdapter.glPushMatrix();