diff --git a/src/main/java/net/minecraft/src/TileEntityMobSpawnerRenderer.java b/src/main/java/net/minecraft/src/TileEntityMobSpawnerRenderer.java index bdaa85b..7264857 100644 --- a/src/main/java/net/minecraft/src/TileEntityMobSpawnerRenderer.java +++ b/src/main/java/net/minecraft/src/TileEntityMobSpawnerRenderer.java @@ -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();