mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-11-05 18:39:49 +01:00
fix missing world errors on load
This commit is contained in:
parent
3bbde6fd8c
commit
05e84e2b37
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user