Fixed default configs

This commit is contained in:
Indyuce 2020-12-21 23:36:12 +01:00
parent 8d416dbdef
commit 0c789c8154
3 changed files with 15 additions and 16 deletions

View File

@ -5,13 +5,13 @@ import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import net.Indyuce.mmocore.api.droptable.condition.Condition;
import net.Indyuce.mmocore.api.droptable.condition.ConditionInstance;
import org.apache.commons.lang.Validate;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.ItemStack;
import net.Indyuce.mmocore.MMOCore;
import net.Indyuce.mmocore.api.droptable.condition.Condition;
import net.Indyuce.mmocore.api.droptable.condition.ConditionInstance;
import net.Indyuce.mmocore.api.droptable.dropitem.DropItem;
import net.Indyuce.mmocore.api.loot.LootBuilder;
import net.mmogroup.mmolib.api.MMOLineConfig;
@ -86,11 +86,9 @@ public class DropTable extends PostLoadObject {
}
public boolean areConditionsMet(ConditionInstance entity) {
for (Condition condition : this.getConditions()) {
if (!condition.isMet(entity)) {
for (Condition condition : conditions)
if (!condition.isMet(entity))
return false;
}
}
return true;
}
}

View File

@ -56,6 +56,7 @@ custom-mine-conditions:
protect-custom-mine: false
loot-chests:
# Time in seconds it takes for a loot chest to
# expire after it was spawned. 600 is 10 minutes.
chest-expire-time: 600

View File

@ -172,8 +172,8 @@ items:
- '&7&ogreatly encourages you!'
- ''
- '&7Party Bonuses ({count}):'
- '&8- +{buff_additional_experience} Experience Earned!'
- '&8- +{buff_health_regeneration} Health Regeneration'
- '&8- +{buff_additional_experience}% Experience Earned!'
- '&8- +{buff_health_regeneration}% Health Regeneration'
stats:
slots: [15]
function: profile