From f0c89e897b16be637155c548d4b7465263ecdd84 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Thu, 20 May 2021 00:48:37 +0200 Subject: [PATCH] Fix JDK version differences --- src/dev/w1zzrd/invtweaks/listener/TabCompletionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/w1zzrd/invtweaks/listener/TabCompletionListener.java b/src/dev/w1zzrd/invtweaks/listener/TabCompletionListener.java index 6f2f464..e2f5e0c 100644 --- a/src/dev/w1zzrd/invtweaks/listener/TabCompletionListener.java +++ b/src/dev/w1zzrd/invtweaks/listener/TabCompletionListener.java @@ -22,7 +22,7 @@ public class TabCompletionListener implements Listener { private static final List materialTypes = Arrays.stream(Material.values()) .map(Material::getKey) .sorted(Comparator.comparing(NamespacedKey::toString)) - .toList(); + .collect(Collectors.toList()); /** * Whether or not there are namespaces other than the default "minecraft"