From 0b6d2d3dd62eed9869183ed73a039ef5a47bc01a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 13 Mar 2017 18:07:48 +1100 Subject: [PATCH] Fixes #1538 --- .../java/com/intellectualcrafters/plot/commands/ListCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/ListCmd.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/ListCmd.java index ee2d9f316..1465476a9 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/ListCmd.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/ListCmd.java @@ -185,8 +185,8 @@ public class ListCmd extends SubCommand { Collections.sort(plots, new Comparator() { @Override public int compare(Plot a, Plot b) { - String va = (String) a.getFlags().get(Flags.DONE); - String vb = (String) b.getFlags().get(Flags.DONE); + String va = "" + a.getFlags().get(Flags.DONE); + String vb = "" + b.getFlags().get(Flags.DONE); if (MathMan.isInteger(va)) { if (MathMan.isInteger(vb)) { return Integer.parseInt(vb) - Integer.parseInt(va);