File tree Expand file tree Collapse file tree
src/main/java/nekiplay/meteorplus/features/modules/combat/killaura Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ 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
4646 public final Setting <Boolean > autoSwitch = sgGeneral .add (new BoolSetting .Builder ()
4747 .name ("auto-switch" )
48- .description ("Switches to your selected weapon when attacking the target." )
48+ .description ("Switches to an acceptable weapon when attacking the target." )
4949 .defaultValue (false )
5050 .build ()
5151 );
@@ -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
You can’t perform that action at this time.
0 commit comments