geforkt von Mirrors/FastAsyncWorldEdit
[Forge] Change compareTo() for commands to fix a Comparable contract issue.
Dieser Commit ist enthalten in:
Ursprung
e93c9c9736
Commit
55c569c387
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.forge;
|
package com.sk89q.worldedit.forge;
|
||||||
|
|
||||||
import com.sk89q.worldedit.world.registry.BiomeRegistry;
|
|
||||||
import com.sk89q.worldedit.LocalConfiguration;
|
import com.sk89q.worldedit.LocalConfiguration;
|
||||||
import com.sk89q.worldedit.ServerInterface;
|
import com.sk89q.worldedit.ServerInterface;
|
||||||
import com.sk89q.worldedit.entity.Player;
|
import com.sk89q.worldedit.entity.Player;
|
||||||
@ -167,11 +166,11 @@ class ForgePlatform extends ServerInterface implements MultiUserPlatform {
|
|||||||
@Override
|
@Override
|
||||||
public int compareTo(@Nullable Object o) {
|
public int compareTo(@Nullable Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return -1;
|
return 0;
|
||||||
} else if (o instanceof ICommand) {
|
} else if (o instanceof ICommand) {
|
||||||
return super.compareTo((ICommand) o);
|
return super.compareTo((ICommand) o);
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren