Skip to content

Commit 642cb4a

Browse files
committed
[FIX] compatibility with 1.21.11 20 build
- Due to MeteorDevelopment/meteor-client@0bdce44 change
1 parent be0642a commit 642cb4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/nekiplay/meteorplus/features/modules/combat/killaura/KillAuraPlus.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public KillAuraPlus() {
3636

3737
// General
3838

39-
public final Setting<KillAura.Weapon> weapon = sgGeneral.add(new EnumSetting.Builder<KillAura.Weapon>()
39+
public final Setting<KillAura.AttackItems> weapon = sgGeneral.add(new EnumSetting.Builder<KillAura.AttackItems>()
4040
.name("weapon")
4141
.description("Only attacks an entity when a specified weapon is in your hand.")
42-
.defaultValue(KillAura.Weapon.All)
42+
.defaultValue(KillAura.AttackItems.All)
4343
.build()
4444
);
4545

@@ -54,7 +54,7 @@ public KillAuraPlus() {
5454
.name("shield-mode")
5555
.description("Will try and use an axe to break target shields.")
5656
.defaultValue(KillAura.ShieldMode.Break)
57-
.visible(() -> autoSwitch.get() && weapon.get() != KillAura.Weapon.Axe)
57+
.visible(autoSwitch::get)
5858
.build()
5959
);
6060

0 commit comments

Comments
 (0)