Fixed null resourcePack problem.

This commit is contained in:
Jonathan Williams 2014-11-07 02:35:38 -08:00
parent 2c098e531a
commit 33696d1e28
1 changed files with 2 additions and 2 deletions

View File

@ -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);