From 478288a8328dbaefef0fc9b4e5f171c7dee1ef7a Mon Sep 17 00:00:00 2001 From: William278 Date: Wed, 14 Apr 2021 13:32:07 +0100 Subject: [PATCH] Fix setDescription on home and warp description updating the name causing cascading issues; made description field no longer final. --- .../java/me/william278/huskhomes2/teleport/points/Home.java | 4 ++-- .../java/me/william278/huskhomes2/teleport/points/Warp.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java b/src/main/java/me/william278/huskhomes2/teleport/points/Home.java index 00e97c95..e7d2518b 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/points/Home.java +++ b/src/main/java/me/william278/huskhomes2/teleport/points/Home.java @@ -16,7 +16,7 @@ import java.util.UUID; public class Home extends TeleportationPoint { private String name; - private final String description; + private String description; private boolean isPublic; private UUID ownerUUID; @@ -140,7 +140,7 @@ public class Home extends TeleportationPoint { * @param description the new Home description */ public void setDescription(String description) { - this.name = description; + this.description = description; } // Returns the maximum number of set homes a player can make diff --git a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java b/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java index d7a23322..69cb68f7 100644 --- a/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java +++ b/src/main/java/me/william278/huskhomes2/teleport/points/Warp.java @@ -14,7 +14,7 @@ import org.bukkit.permissions.PermissionAttachmentInfo; public class Warp extends TeleportationPoint { private String name; - private final String description; + private String description; /** * An object representing an in-game warp @@ -69,7 +69,7 @@ public class Warp extends TeleportationPoint { * @param description the new Warp description */ public void setDescription(String description) { - this.name = description; + this.description = description; } // Returns if the player has permission to access the warp