Fixed NPE when party creation doesn't use password. Solves bug reported here: https://discord.com/channels/526933440214597677/526938425161416727/1213131451235827753

Signed-off-by: Momshroom <Momshroom@gmail.com>
This commit is contained in:
Momshroom 2024-03-01 21:16:36 -06:00
parent 4d85f24d98
commit 47506d404f

View File

@ -354,7 +354,6 @@ public final class PartyManager {
public void createParty(@NotNull McMMOPlayer mcMMOPlayer, @NotNull String partyName, @Nullable String password) {
requireNonNull(mcMMOPlayer, "mcMMOPlayer cannot be null!");
requireNonNull(partyName, "partyName cannot be null!");
requireNonNull(password, "password cannot be null!");
Player player = mcMMOPlayer.getPlayer();