Skip to content

Commit 807ee52

Browse files
authored
Merge pull request #2583 from BentoBoxWorld/develop
Release 3.2.1
2 parents cf51aec + 8f81790 commit 807ee52

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<!-- Do not change unless you want different name for local builds. -->
8585
<build.number>-LOCAL</build.number>
8686
<!-- This allows to change between versions. -->
87-
<build.version>3.2.0</build.version>
87+
<build.version>3.2.1</build.version>
8888
<sonar.organization>bentobox-world</sonar.organization>
8989
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
9090
<server.jars>${project.basedir}/lib</server.jars>

src/main/java/world/bentobox/bentobox/blueprints/dataobjects/BlueprintEntity.java

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
132132
@Expose
133133
private double z;
134134
@Expose
135-
private boolean glowing;
135+
private Boolean glowing;
136136
@Expose
137-
private boolean gravity;
137+
private Boolean gravity;
138138
@Expose
139-
private boolean visualFire;
139+
private Boolean visualFire;
140140
@Expose
141-
private boolean silent;
141+
private Boolean silent;
142142
@Expose
143-
private boolean invulnerable;
143+
private Boolean invulnerable;
144144
@Expose
145145
private int fireTicks;
146146

@@ -149,6 +149,7 @@ public record TextDisplayRec(@Expose String text, @Expose TextAlignment alignmen
149149
* @param entity entity to serialize
150150
* @since 3.2.0
151151
*/
152+
@SuppressWarnings("deprecation")
152153
public BlueprintEntity(Entity entity) {
153154
this.setType(entity.getType());
154155
this.setCustomName(entity.getCustomName());
@@ -568,6 +569,9 @@ public void storeDisplay(Display disp) {
568569
* @return the glowing
569570
*/
570571
public boolean isGlowing() {
572+
if (glowing == null) {
573+
glowing = false; // Default
574+
}
571575
return glowing;
572576
}
573577

@@ -582,6 +586,9 @@ public void setGlowing(boolean glowing) {
582586
* @return the gravity
583587
*/
584588
public boolean isGravity() {
589+
if (gravity == null) {
590+
gravity = true;
591+
}
585592
return gravity;
586593
}
587594

@@ -596,6 +603,9 @@ public void setGravity(boolean gravity) {
596603
* @return the visualFire
597604
*/
598605
public boolean isVisualFire() {
606+
if (visualFire == null) {
607+
visualFire = true;
608+
}
599609
return visualFire;
600610
}
601611

@@ -610,6 +620,9 @@ public void setVisualFire(boolean visualFire) {
610620
* @return the silent
611621
*/
612622
public boolean isSilent() {
623+
if (silent == null) {
624+
silent = false;
625+
}
613626
return silent;
614627
}
615628

@@ -624,6 +637,9 @@ public void setSilent(boolean silent) {
624637
* @return the invulnerable
625638
*/
626639
public boolean isInvulnerable() {
640+
if (invulnerable == null) {
641+
invulnerable = false;
642+
}
627643
return invulnerable;
628644
}
629645

0 commit comments

Comments
 (0)