mirror of
https://github.com/songoda/EpicFarming.git
synced 2025-02-21 23:11:44 +01:00
Fixed issue with boosting.
This commit is contained in:
parent
4b642b000d
commit
45f519c094
@ -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(),
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user