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

Signed-off-by: Momshroom <Momshroom@gmail.com>
This commit is contained in:
Momshroom 2024-03-09 22:16:14 -06:00 committed by GitHub
parent 4d85f24d98
commit 2117c67084
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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