mirror of
https://github.com/songoda/EpicFarming.git
synced 2024-09-30 23:57:29 +02: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
|
// 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(),
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user