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 // Adding in Boosts
if (storage.containsGroup("boosts")) { if (storage.containsGroup("boosts")) {
for (StorageRow row : storage.getRowsByGroup("boosts")) { for (StorageRow row : storage.getRowsByGroup("boosts")) {
if (row.getItems().get("player").asObject() != null)
continue;
BoostData boostData = new BoostData( BoostData boostData = new BoostData(
row.get("amount").asInt(), row.get("amount").asInt(),

View File

@ -22,12 +22,12 @@ public class StorageItem {
this.object = object; this.object = object;
} }
public StorageItem(String key, List<ItemStack> material) { public StorageItem(String key, List<ItemStack> items) {
if (material == null || material.isEmpty()) return; if (items == null || items.isEmpty()) return;
StringBuilder object = new StringBuilder(); StringBuilder object = new StringBuilder();
for (ItemStack m : material) { for (ItemStack item : items) {
if (m == null) continue; if (item == null) continue;
object.append(Serializers.serialize(m)); object.append(Serializers.serialize(item));
object.append(";;"); object.append(";;");
} }
this.key = key; this.key = key;