mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 02:49:22 +00:00
Fixed effects being applied incorrectly
This commit is contained in:
@@ -41,9 +41,6 @@ import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/*
|
||||
TODO: Split off ArmorSet between two separate armorset objects (one advanced, one not)
|
||||
*/
|
||||
public class ArmorSet {
|
||||
/**
|
||||
* Instance of EcoArmor.
|
||||
@@ -132,7 +129,7 @@ public class ArmorSet {
|
||||
for (Config cfg : this.getConfig().getSubsections("advancedEffects")) {
|
||||
ConfiguredEffect conf = Effects.compile(cfg, "Armor Set " + this.name + " (Advanced)");
|
||||
if (conf != null) {
|
||||
effects.add(conf);
|
||||
advancedEffects.add(conf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.willfp.libreforge.Holder
|
||||
import com.willfp.libreforge.conditions.ConfiguredCondition
|
||||
import com.willfp.libreforge.effects.ConfiguredEffect
|
||||
|
||||
class AdvancedHolder(override val conditions: Set<ConfiguredCondition>, override val effects: Set<ConfiguredEffect>) :
|
||||
Holder {
|
||||
class AdvancedHolder(
|
||||
override val conditions: Set<ConfiguredCondition>,
|
||||
override val effects: Set<ConfiguredEffect>) : Holder {
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.willfp.libreforge.Holder
|
||||
import com.willfp.libreforge.conditions.ConfiguredCondition
|
||||
import com.willfp.libreforge.effects.ConfiguredEffect
|
||||
|
||||
class RegularHolder(override val conditions: Set<ConfiguredCondition>, override val effects: Set<ConfiguredEffect>) :
|
||||
Holder {
|
||||
class RegularHolder(
|
||||
override val conditions: Set<ConfiguredCondition>,
|
||||
override val effects: Set<ConfiguredEffect>) : Holder {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user