Don't load empty furnaces.

This commit is contained in:
Brianna 2019-06-19 11:48:32 -04:00
parent 4abff542f0
commit 664e61579a
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "EpicFurnaces"
path: "/builds/$CI_PROJECT_PATH"
version: "4.3.3"
version: "4.3.4"
build:
stage: build

View File

@ -169,7 +169,9 @@ public class EpicFurnaces extends JavaPlugin {
if (storage.containsGroup("charged")) {
for (StorageRow row : storage.getRowsByGroup("charged")) {
Location location = Methods.unserializeLocation(row.getKey());
if (location == null) return;
if (location == null) continue;
if (row.get("level").asInt() == 0) continue;
int level = row.get("level").asInt();
int uses = row.get("uses").asInt();