From 3c87b4e8137df6e91eb00dbc0b9bbb4e7d598de2 Mon Sep 17 00:00:00 2001 From: Touchie771 Date: Thu, 27 Nov 2025 20:00:09 +0200 Subject: [PATCH] fixed getItems() casting --- src/main/java/me/touchie771/minecraftGUI/api/Menu.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/touchie771/minecraftGUI/api/Menu.java b/src/main/java/me/touchie771/minecraftGUI/api/Menu.java index 2691561..447c345 100644 --- a/src/main/java/me/touchie771/minecraftGUI/api/Menu.java +++ b/src/main/java/me/touchie771/minecraftGUI/api/Menu.java @@ -11,11 +11,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.function.Consumer; /** @@ -144,8 +140,8 @@ public Inventory getInventory() { * * @return an unmodifiable set of SlotItem instances in this menu */ - public HashSet getItems() { - return (HashSet) Collections.unmodifiableSet(this.items); + public Set getItems() { + return Collections.unmodifiableSet(this.items); } /**