Merge pull request #267 from mattcr11/spark/clientcrash

Fixed NullPointerException
This commit is contained in:
Lizbeth Rika committed 2014-08-24 23:41:56 +01:00
commit a623bd4e59
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;
}