fix invalid mob spawner nullpointerexception
This commit is contained in:
parent
3d73f98d49
commit
6f06daa2a5
|
@ -9,7 +9,9 @@ public class TileEntityMobSpawnerRenderer extends TileEntitySpecialRenderer {
|
||||||
TileEntityMobSpawner spawner = (TileEntityMobSpawner) var1;
|
TileEntityMobSpawner spawner = (TileEntityMobSpawner) var1;
|
||||||
if(spawner.mobObject == null) {
|
if(spawner.mobObject == null) {
|
||||||
spawner.mobObject = EntityList.createEntityByName(spawner.mobID, spawner.worldObj);
|
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) {
|
if(spawner.mobObject != null) {
|
||||||
EaglerAdapter.glPushMatrix();
|
EaglerAdapter.glPushMatrix();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user