Fixed issue with boosting.

This commit is contained in:
Brianna 2019-10-28 16:15:55 -04:00
parent 4b642b000d
commit 45f519c094
2 changed files with 5 additions and 7 deletions

View File

@ -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(),

View File

@ -22,12 +22,12 @@ public class StorageItem {
this.object = object;
}
public StorageItem(String key, List<ItemStack> material) {
if (material == null || material.isEmpty()) return;
public StorageItem(String key, List<ItemStack> 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;