Fixed null resourcePack problem.
This commit is contained in:
parent
2c098e531a
commit
33696d1e28
|
@ -125,7 +125,7 @@ public class ServerGroup
|
|||
private boolean _staffOnly;
|
||||
public boolean getStaffOnly() { return _staffOnly; }
|
||||
|
||||
private String _resourcePack;
|
||||
private String _resourcePack = "";
|
||||
public String getResourcePack() { return _resourcePack; }
|
||||
// The set of active MinecraftServers that belong to this server group
|
||||
private Set<MinecraftServer> _servers;
|
||||
|
@ -174,7 +174,7 @@ public class ServerGroup
|
|||
_playerKickIdle = Boolean.valueOf(data.get("playerKickIdle"));
|
||||
_staffOnly = Boolean.valueOf(data.get("staffOnly"));
|
||||
_whitelist = Boolean.valueOf(data.get("whitelist"));
|
||||
_resourcePack = data.get("resourcePack");
|
||||
_resourcePack = data.containsKey("resourcePack") ? data.get("resourcePack") : "";
|
||||
|
||||
if (fetch)
|
||||
fetchServers(region);
|
||||
|
|
Loading…
Reference in New Issue