From 11e762f07a2a4582580de9bcc4db0728abb594d8 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Mon, 13 Jul 2020 11:15:01 +0200 Subject: [PATCH] Add basic angle mask suggestions Mask suggestions are a bit broken in general so this doesn't change much --- .../extension/factory/parser/mask/AngleMaskParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/AngleMaskParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/AngleMaskParser.java index e150d836a..0957a7e8c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/AngleMaskParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/mask/AngleMaskParser.java @@ -18,6 +18,9 @@ public class AngleMaskParser extends RichParser { @Override protected Stream getSuggestions(String argumentInput, int index) { + if (index == 0 || index == 1) { + return suggestPositiveDoubles(argumentInput).flatMap(s -> Stream.of(s, s + "d")); + } return null; }