mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-28 21:45:47 +01:00
Remove equal sign from edit command
This commit is contained in:
parent
ae78d62779
commit
4e1b144329
@ -132,10 +132,6 @@ public class EditSubCommand extends SubCommand {
|
|||||||
|
|
||||||
List<String> ret = new ArrayList<>();
|
List<String> ret = new ArrayList<>();
|
||||||
|
|
||||||
if (!isItemSet) {
|
|
||||||
ITEM_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isAmountSet) {
|
if (!isAmountSet) {
|
||||||
AMOUNT_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
|
AMOUNT_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
|
||||||
}
|
}
|
||||||
@ -151,6 +147,10 @@ public class EditSubCommand extends SubCommand {
|
|||||||
// Add equals signs
|
// Add equals signs
|
||||||
ret.replaceAll(arg -> arg + "=");
|
ret.replaceAll(arg -> arg + "=");
|
||||||
|
|
||||||
|
if (!isItemSet) {
|
||||||
|
ITEM_ARGS.stream().filter(arg -> arg.startsWith(lastArg)).findFirst().ifPresent(ret::add);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user