mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Fixed AIOOBE and a missing return, removed an unused and ambiguous method from CommandContext.
This commit is contained in:
@ -585,8 +585,9 @@ public class SelectionCommands {
|
||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||
throws WorldEditException {
|
||||
|
||||
if (args.length() == 0) {
|
||||
if (args.argsLength() == 0) {
|
||||
session.getRegionSelector(player.getWorld()).clear();
|
||||
return;
|
||||
}
|
||||
String typeName = args.getString(0);
|
||||
if (typeName.equalsIgnoreCase("cuboid")) {
|
||||
|
Reference in New Issue
Block a user