mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 06:37:34 +00:00
Prevent NPE when party leader name missing
This commit is contained in:
1 parent
6a31602701
commit
b6b4b20ba8
1 file changed
+1
-1
@@ -219,7 +219,7 @@ public class Party implements IParty {
|
||||
@Override
|
||||
public String getPartyLeaderName() {
|
||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
|
||||
return this.partyLeaderName;
|
||||
return this.partyLeaderName == null ? "" : this.partyLeaderName;
|
||||
} else {
|
||||
EntityPlayer leader = this.getPartyLeader();
|
||||
if (leader != null)
|
||||
|
||||
Reference in new issue
Block a user