mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-11 02:07:38 +00:00
Fixed AIOOBE and a missing return, removed an unused and ambiguous method from CommandContext.
This commit is contained in:
parent
dd358bc982
commit
1a6bc6f42c
@ -221,10 +221,6 @@ public class CommandContext {
|
|||||||
return Double.parseDouble(value);
|
return Double.parseDouble(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int length() {
|
|
||||||
return args.length;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int argsLength() {
|
public int argsLength() {
|
||||||
return args.length - 1;
|
return args.length - 1;
|
||||||
}
|
}
|
||||||
|
@ -585,8 +585,9 @@ public class SelectionCommands {
|
|||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
|
||||||
if (args.length() == 0) {
|
if (args.argsLength() == 0) {
|
||||||
session.getRegionSelector(player.getWorld()).clear();
|
session.getRegionSelector(player.getWorld()).clear();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
String typeName = args.getString(0);
|
String typeName = args.getString(0);
|
||||||
if (typeName.equalsIgnoreCase("cuboid")) {
|
if (typeName.equalsIgnoreCase("cuboid")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user