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