String data can't be null

This commit is contained in:
1whohears committed 2022-05-29 14:42:28 -05:00
1 parent fb0ff50994
commit a675033d62
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ public class DataAdvanced {
public boolean disablePitch = false;
public boolean refuseSoulStone = false;
public String soulStonePlayerName;
public String soulStonePlayerName = "";
public DataAdvanced(EntityNPCInterface npc) {
this.npc = npc;
@@ -868,7 +868,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
}
public boolean spawnedFromSoulStone() {
return npc.advanced.soulStonePlayerName != null;
return !npc.advanced.soulStonePlayerName.equals("");
}
public String getSoulStonePlayerName() {