mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-11-18 06:24:17 +01:00
Fixed proxy-mode profiles not working when forcing class selection
This commit is contained in:
parent
8711c9ec0f
commit
a688ed32ed
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ MMOCore.iml
|
||||
/MMOCore-Dist/MMOCore-Dist.iml
|
||||
|
||||
local_install.bat
|
||||
proxy_install.bat
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user