Fixed NullPointerException by extending error check to also handle client side.

This commit is contained in:
Matthew Rucker committed 2014-08-24 18:34:51 -04:00
1 parent 09f267951c
commit 7101895a07
1 file changed
+3 -2
@@ -61,8 +61,9 @@ public class EntitySpark extends Entity implements ISparkEntity {
super.onUpdate();
ISparkAttachable tile = getAttachedTile();
if(tile == null && !worldObj.isRemote) {
setDead();
if(tile == null) {
if(!worldObj.isRemote)
setDead();
return;
}