From 2c16c767e7c26365835553651652b46c94af882a Mon Sep 17 00:00:00 2001 From: MattBDev Date: Tue, 26 Apr 2016 08:40:52 -0400 Subject: [PATCH] Fix flag values being loaded as strings --- .../com/intellectualcrafters/plot/database/SQLManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java index 038632150..0cd6a5a2c 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -1841,7 +1841,7 @@ public class SQLManager implements AbstractDB { try { String flag_str = split[1].replaceAll("\u00AF", ":").replaceAll("\u00B4", ","); Flag flag = FlagManager.getFlag(split[0]); - flags.put(flag, flag_str); + flags.put(flag, flag.parseValue(flag_str)); } catch (Exception e) { e.printStackTrace(); exception = true; @@ -1850,7 +1850,7 @@ public class SQLManager implements AbstractDB { element = element.replaceAll("\u00AF", ":").replaceAll("\u00B4", ","); if (StringMan.isAlpha(element.replaceAll("_", "").replaceAll("-", ""))) { Flag flag = FlagManager.getFlag(element); - flags.put(flag, ""); + flags.put(flag, flag.parseValue("")); } else { PS.debug("INVALID FLAG: " + element); }