mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
Fixed NullPointerException by extending error check to also handle client side.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user