From b7af2f9008da48171736830e0592447b04582850 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 31 Dec 2024 21:10:35 -0800 Subject: [PATCH] Use getters to avoid NPEs --- .../blueprints/dataobjects/BlueprintEntity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java b/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java index 73dd41fe1..195098aba 100644 --- a/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java +++ b/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java @@ -223,12 +223,12 @@ private void configVillager(Villager v) { */ public void configureEntity(Entity e) { // Set the general states - e.setGlowing(glowing); - e.setGravity(gravity); - e.setVisualFire(visualFire); - e.setSilent(silent); - e.setInvulnerable(invulnerable); - e.setFireTicks(fireTicks); + e.setGlowing(isGlowing()); + e.setGravity(isGravity()); + e.setVisualFire(isVisualFire()); + e.setSilent(isSilent()); + e.setInvulnerable(isInvulnerable()); + e.setFireTicks(getFireTicks()); if (e instanceof Villager villager) { setVillager(villager);