From a688ed32ed810742202a9542623a9b1fcc25507b Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 29 Oct 2025 17:49:59 +0100 Subject: [PATCH] Fixed proxy-mode profiles not working when forcing class selection --- .gitignore | 1 + .../mmocore/comp/profile/ForceClassProfileDataModule.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e5914e96..b83e5187 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ MMOCore.iml /MMOCore-Dist/MMOCore-Dist.iml local_install.bat +proxy_install.bat diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/profile/ForceClassProfileDataModule.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/profile/ForceClassProfileDataModule.java index 1257691a..1f22d257 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/profile/ForceClassProfileDataModule.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/profile/ForceClassProfileDataModule.java @@ -69,8 +69,8 @@ public class ForceClassProfileDataModule implements ProfileDataModule { if (!event.hasProfileEvent()) { Validate.isTrue(MythicLib.plugin.getProfileMode() == ProfileMode.PROXY, "Listened to a data load event with no profile event attached but proxy-based profiles are disabled"); if (playerData.getProfess().equals(MMOCore.plugin.classManager.getDefaultClass())) - InventoryManager.CLASS_SELECT.newInventory(playerData, () -> { - }).open(); + InventoryManager.CLASS_SELECT.newInventory(playerData, () -> event.getHolder().getMMOPlayerData().getProfileSession().markAsReady(this.key)).open(); + else event.getHolder().getMMOPlayerData().getProfileSession().markAsReady(this.key); return; }