Fix index problem for chestGUI

This commit is contained in:
zontreck 2024-01-10 01:25:57 -07:00
parent b2a2c60dfd
commit ac69c828a4
3 changed files with 11 additions and 10 deletions

View file

@ -1,6 +1,7 @@
package dev.zontreck.libzontreck.events;
import dev.zontreck.libzontreck.chestgui.ChestGUI;
import dev.zontreck.libzontreck.chestgui.ChestGUIIdentifier;
import dev.zontreck.libzontreck.util.ServerUtilities;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.level.ServerPlayer;
@ -11,18 +12,18 @@ import java.util.UUID;
public class OpenGUIEvent extends Event
{
private ResourceLocation GUIId;
private ChestGUIIdentifier GUIId;
private UUID playerID;
private final ChestGUI gui;
public OpenGUIEvent(ResourceLocation ID, UUID player, ChestGUI gui)
public OpenGUIEvent(ChestGUIIdentifier ID, UUID player, ChestGUI gui)
{
GUIId = ID;
playerID = player;
this.gui = gui;
}
public boolean matches(ResourceLocation id)
public boolean matches(ChestGUIIdentifier id)
{
return GUIId.equals(id);
}