Fix kits frfrfr

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2025-12-20 22:03:09 +01:00
parent feac17d732
commit 1269e4d971
2 changed files with 2 additions and 3 deletions
@@ -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)
@@ -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();