fix missing world errors on load

This commit is contained in:
jascotty2 2019-09-07 16:04:53 -05:00
parent 3bbde6fd8c
commit 05e84e2b37

View File

@ -138,7 +138,7 @@ public class EpicFarmingPlugin extends JavaPlugin implements EpicFarming {
if (storage.containsGroup("farms")) {
for (StorageRow row : storage.getRowsByGroup("farms")) {
Location location = Methods.unserializeLocation(row.getKey());
if (location == null || location.getBlock() == null) return;
if (location == null || location.getWorld() == null) return;
int level = row.get("level").asInt();
List<ItemStack> items =row.get("contents").asItemStackList();