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
|
/MMOCore-Dist/MMOCore-Dist.iml
|
||||||
|
|
||||||
local_install.bat
|
local_install.bat
|
||||||
|
proxy_install.bat
|
||||||
|
|||||||
@ -69,8 +69,8 @@ public class ForceClassProfileDataModule implements ProfileDataModule {
|
|||||||
if (!event.hasProfileEvent()) {
|
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");
|
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()))
|
if (playerData.getProfess().equals(MMOCore.plugin.classManager.getDefaultClass()))
|
||||||
InventoryManager.CLASS_SELECT.newInventory(playerData, () -> {
|
InventoryManager.CLASS_SELECT.newInventory(playerData, () -> event.getHolder().getMMOPlayerData().getProfileSession().markAsReady(this.key)).open();
|
||||||
}).open();
|
else event.getHolder().getMMOPlayerData().getProfileSession().markAsReady(this.key);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user