diff --git a/pom.xml b/pom.xml
index 1e46541fd..277ec6528 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,7 +84,7 @@
-LOCAL
- 3.2.0
+ 3.2.1
bentobox-world
https://sonarcloud.io
${project.basedir}/lib
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 e41ebcc9b..73dd41fe1 100644
--- a/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java
+++ b/src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java
@@ -132,15 +132,15 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
@Expose
private double z;
@Expose
- private boolean glowing;
+ private Boolean glowing;
@Expose
- private boolean gravity;
+ private Boolean gravity;
@Expose
- private boolean visualFire;
+ private Boolean visualFire;
@Expose
- private boolean silent;
+ private Boolean silent;
@Expose
- private boolean invulnerable;
+ private Boolean invulnerable;
@Expose
private int fireTicks;
@@ -149,6 +149,7 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
* @param entity entity to serialize
* @since 3.2.0
*/
+ @SuppressWarnings("deprecation")
public BlueprintEntity(Entity entity) {
this.setType(entity.getType());
this.setCustomName(entity.getCustomName());
@@ -568,6 +569,9 @@ public void storeDisplay(Display disp) {
* @return the glowing
*/
public boolean isGlowing() {
+ if (glowing == null) {
+ glowing = false; // Default
+ }
return glowing;
}
@@ -582,6 +586,9 @@ public void setGlowing(boolean glowing) {
* @return the gravity
*/
public boolean isGravity() {
+ if (gravity == null) {
+ gravity = true;
+ }
return gravity;
}
@@ -596,6 +603,9 @@ public void setGravity(boolean gravity) {
* @return the visualFire
*/
public boolean isVisualFire() {
+ if (visualFire == null) {
+ visualFire = true;
+ }
return visualFire;
}
@@ -610,6 +620,9 @@ public void setVisualFire(boolean visualFire) {
* @return the silent
*/
public boolean isSilent() {
+ if (silent == null) {
+ silent = false;
+ }
return silent;
}
@@ -624,6 +637,9 @@ public void setSilent(boolean silent) {
* @return the invulnerable
*/
public boolean isInvulnerable() {
+ if (invulnerable == null) {
+ invulnerable = false;
+ }
return invulnerable;
}