mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2025-01-05 23:37:34 +01:00
Don't load empty furnaces.
This commit is contained in:
parent
4abff542f0
commit
664e61579a
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "EpicFurnaces"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "4.3.3"
|
||||
version: "4.3.4"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user