From 1269e4d97118916d474ae279d52bb6bbfb5baefd Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 20 Dec 2025 22:03:09 +0100 Subject: [PATCH] Fix kits frfrfr Signed-off-by: Chaoscaot --- CommonCore/SQL/src/de/steamwar/sql/PersonalKit.kt | 4 ++-- .../src/de/steamwar/fightsystem/commands/GUI.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/PersonalKit.kt b/CommonCore/SQL/src/de/steamwar/sql/PersonalKit.kt index c8b6d897..f1bd3c79 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/PersonalKit.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/PersonalKit.kt @@ -33,8 +33,8 @@ object PersonalKitTable: CompositeIdTable("PersonalKit") { val userId = reference("UserId", SteamwarUserTable) val gamemode = varchar("Gamemode", 64).entityId() val kitName = varchar("Name", 64).entityId() - val inventory = text("Inventory") - val armor = text("Armor") + val inventory = text("Inventory", eagerLoading = true) + val armor = text("Armor", eagerLoading = true) val inUse = bool("InUse") override val primaryKey = PrimaryKey(userId, gamemode, kitName) diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java index bd66ffeb..99236c84 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/commands/GUI.java @@ -182,7 +182,6 @@ public class GUI { } Kit prototype = Kit.getAvailableKits(Fight.getFightPlayer(p).isLeader()).get(0); PersonalKit kit = PersonalKit.create(user.getId(), Config.GameModeConfig.Schematic.Type.toDB(), s, prototype.getInventory(), prototype.getArmor()); - p.closeInventory(); Bukkit.getScheduler().runTask(FightSystem.getPlugin(), () -> PersonalKitCreator.openKitCreator(p, kit)); }); anvilInv.open();