From 846936cd3d02f5e6eeb31ef8c84094974c4204d8 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 3 Jun 2019 22:50:05 -0400 Subject: [PATCH] All your furnaces will no longer wipe when a single one fails to load. --- .gitlab-ci.yml | 2 +- .../com/songoda/epicfurnaces/managers/FurnaceManager.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86d4551..b93250b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicFurnaces" path: "/builds/$CI_PROJECT_PATH" - version: "4.2.2" + version: "4.2.3" build: stage: build diff --git a/core/src/main/java/com/songoda/epicfurnaces/managers/FurnaceManager.java b/core/src/main/java/com/songoda/epicfurnaces/managers/FurnaceManager.java index 325ef79..e4b9909 100644 --- a/core/src/main/java/com/songoda/epicfurnaces/managers/FurnaceManager.java +++ b/core/src/main/java/com/songoda/epicfurnaces/managers/FurnaceManager.java @@ -94,8 +94,8 @@ public class FurnaceManager { if (storage.containsGroup("charged")) { for (StorageRow row : storage.getRowsByGroup("charged")) { Location location = Methods.deserializeLocation(row.getKey()); - if (location == null || location.getBlock() == null) { - return; + if (location == null || location.getWorld() == null) { + continue; } int level = row.get("level").asInt();