mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 09:57:40 +01:00
Use getters to avoid NPEs
This commit is contained in:
parent
84b79e0111
commit
b7af2f9008
@ -223,12 +223,12 @@ public class BlueprintEntity {
|
||||
*/
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user