From 0729040a0cb1e326b9294eab5e1293583ba649ce Mon Sep 17 00:00:00 2001 From: jwkerr <49851457+jwkerr@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:38:27 +1100 Subject: [PATCH] Default snow to true if key is not present --- .../com/palmergames/bukkit/towny/object/TownyPermission.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/object/TownyPermission.java b/Towny/src/main/java/com/palmergames/bukkit/towny/object/TownyPermission.java index 21358580a2..0298a886f2 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/object/TownyPermission.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/object/TownyPermission.java @@ -205,6 +205,10 @@ public void set(String s, boolean b) { public void load(String s) { setAll(false); + + // To update perm lines from before the snowfall toggle was added to make sure snow doesn't unexpectedly stop falling + snow = true; + String[] tokens = s.split(","); for (String token : tokens) set(token, true);