Skip to content

Commit

Permalink
Merge pull request #2583 from BentoBoxWorld/develop
Browse files Browse the repository at this point in the history
Release 3.2.1
  • Loading branch information
tastybento authored Dec 30, 2024
2 parents cf51aec + 8f81790 commit 807ee52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number>
<!-- This allows to change between versions. -->
<build.version>3.2.0</build.version>
<build.version>3.2.1</build.version>
<sonar.organization>bentobox-world</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<server.jars>${project.basedir}/lib</server.jars>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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());
Expand Down Expand Up @@ -568,6 +569,9 @@ public void storeDisplay(Display disp) {
* @return the glowing
*/
public boolean isGlowing() {
if (glowing == null) {
glowing = false; // Default
}
return glowing;
}

Expand All @@ -582,6 +586,9 @@ public void setGlowing(boolean glowing) {
* @return the gravity
*/
public boolean isGravity() {
if (gravity == null) {
gravity = true;
}
return gravity;
}

Expand All @@ -596,6 +603,9 @@ public void setGravity(boolean gravity) {
* @return the visualFire
*/
public boolean isVisualFire() {
if (visualFire == null) {
visualFire = true;
}
return visualFire;
}

Expand All @@ -610,6 +620,9 @@ public void setVisualFire(boolean visualFire) {
* @return the silent
*/
public boolean isSilent() {
if (silent == null) {
silent = false;
}
return silent;
}

Expand All @@ -624,6 +637,9 @@ public void setSilent(boolean silent) {
* @return the invulnerable
*/
public boolean isInvulnerable() {
if (invulnerable == null) {
invulnerable = false;
}
return invulnerable;
}

Expand Down

0 comments on commit 807ee52

Please sign in to comment.