diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68cc5ee..3530178 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicFarming" path: "/builds/$CI_PROJECT_PATH" - version: "3.0.4" + version: "3.0.5" build: stage: build diff --git a/src/main/java/com/songoda/epicfarming/EpicFarming.java b/src/main/java/com/songoda/epicfarming/EpicFarming.java index b945e38..7d1f629 100644 --- a/src/main/java/com/songoda/epicfarming/EpicFarming.java +++ b/src/main/java/com/songoda/epicfarming/EpicFarming.java @@ -160,8 +160,6 @@ public class EpicFarming extends SongodaPlugin { // Adding in Boosts if (storage.containsGroup("boosts")) { for (StorageRow row : storage.getRowsByGroup("boosts")) { - if (row.getItems().get("player").asObject() != null) - continue; BoostData boostData = new BoostData( row.get("amount").asInt(), diff --git a/src/main/java/com/songoda/epicfarming/storage/StorageItem.java b/src/main/java/com/songoda/epicfarming/storage/StorageItem.java index 69f0fe7..44c1972 100644 --- a/src/main/java/com/songoda/epicfarming/storage/StorageItem.java +++ b/src/main/java/com/songoda/epicfarming/storage/StorageItem.java @@ -22,12 +22,12 @@ public class StorageItem { this.object = object; } - public StorageItem(String key, List material) { - if (material == null || material.isEmpty()) return; + public StorageItem(String key, List items) { + if (items == null || items.isEmpty()) return; StringBuilder object = new StringBuilder(); - for (ItemStack m : material) { - if (m == null) continue; - object.append(Serializers.serialize(m)); + for (ItemStack item : items) { + if (item == null) continue; + object.append(Serializers.serialize(item)); object.append(";;"); } this.key = key;