From fa0f80f36f1a4fb1fe6cdfdbdf9bb08f43e4c403 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 15 Jan 2023 20:48:09 +0100 Subject: [PATCH] Remove deprecated code usage from CommandAPI Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/tracer/TraceCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java index 8f6b0017..77775134 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java @@ -236,7 +236,7 @@ public class TraceCommand extends SWCommand { @Override public List tabCompletes(CommandSender commandSender, PreviousArguments previousArguments, String s) { Set showModeParameterTypeSet = new HashSet<>(); - Arrays.stream(previousArguments.mappedArgs).filter(ShowModeType.class::isInstance).map(ShowModeType.class::cast).forEach(showModeType -> { + previousArguments.getAll(ShowModeType.class).forEach(showModeType -> { showModeParameterTypeSet.addAll(Arrays.asList(showModeType.removedTypes)); }); Arrays.stream(previousArguments.userArgs).map(showModeParameterTypesMap::get).forEach(showModeParameterTypeSet::add);