Prevented NPE with crystals
This commit is contained in:
parent
26b3a17e58
commit
97ddadd664
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ public class EntityCrystal extends EntityFlying implements IEntityAdditionalSpaw
|
|||
}
|
||||
|
||||
public void moveTowardsTarget(Entity target, double speed) {
|
||||
if (this.worldObj.isRemote) {
|
||||
if (target == null || this.worldObj.isRemote) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue