From 55c569c38772793cc800707dba967743e9da9c45 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 25 Jul 2014 19:35:17 -0700 Subject: [PATCH] [Forge] Change compareTo() for commands to fix a Comparable contract issue. --- src/forge/java/com/sk89q/worldedit/forge/ForgePlatform.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/forge/java/com/sk89q/worldedit/forge/ForgePlatform.java b/src/forge/java/com/sk89q/worldedit/forge/ForgePlatform.java index 3f4f9b19b..46b88d5e7 100644 --- a/src/forge/java/com/sk89q/worldedit/forge/ForgePlatform.java +++ b/src/forge/java/com/sk89q/worldedit/forge/ForgePlatform.java @@ -19,7 +19,6 @@ package com.sk89q.worldedit.forge; -import com.sk89q.worldedit.world.registry.BiomeRegistry; import com.sk89q.worldedit.LocalConfiguration; import com.sk89q.worldedit.ServerInterface; import com.sk89q.worldedit.entity.Player; @@ -167,11 +166,11 @@ class ForgePlatform extends ServerInterface implements MultiUserPlatform { @Override public int compareTo(@Nullable Object o) { if (o == null) { - return -1; + return 0; } else if (o instanceof ICommand) { return super.compareTo((ICommand) o); } else { - return -1; + return 0; } } });