Fix NPE
This commit is contained in:
parent
19be823118
commit
844f6d8751
|
@ -78,7 +78,7 @@ public class CitizensNPC extends AbstractNPC {
|
|||
|
||||
@Override
|
||||
public LivingEntity getBukkitEntity() {
|
||||
return entityController.getBukkitEntity();
|
||||
return entityController == null ? null : entityController.getBukkitEntity();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -29,7 +29,6 @@ public class HorseController extends MobEntityController {
|
|||
|
||||
public static class EntityHorseNPC extends EntityHorse implements NPCHolder {
|
||||
private int jumpTicks;
|
||||
|
||||
private final CitizensNPC npc;
|
||||
|
||||
public EntityHorseNPC(World world) {
|
||||
|
|
Loading…
Reference in New Issue