Prevented NPE with crystals

This commit is contained in:
Kino 2019-01-31 20:41:52 -05:00
parent 26b3a17e58
commit 97ddadd664

View file

@ -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;
}