mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
Merge pull request #267 from mattcr11/spark/clientcrash
Fixed NullPointerException
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user