mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-30 23:57:29 +02: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")) {
|
if (storage.containsGroup("farms")) {
|
||||||
for (StorageRow row : storage.getRowsByGroup("farms")) {
|
for (StorageRow row : storage.getRowsByGroup("farms")) {
|
||||||
Location location = Methods.unserializeLocation(row.getKey());
|
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();
|
int level = row.get("level").asInt();
|
||||||
List<ItemStack> items =row.get("contents").asItemStackList();
|
List<ItemStack> items =row.get("contents").asItemStackList();
|
||||||
|
Loading…
Reference in New Issue
Block a user