From 04bc65c83a8515aef31f1f5fbb2012768a33eccf Mon Sep 17 00:00:00 2001 From: Bishop Date: Sun, 26 Jul 2026 12:00:01 -0500 Subject: [PATCH] ContentAPI on the thing I removed magic numbers from --- .../game/node/entity/combat/equipment/WeaponInterface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/src/main/core/game/node/entity/combat/equipment/WeaponInterface.java b/Server/src/main/core/game/node/entity/combat/equipment/WeaponInterface.java index 934b1f88f..4716e7939 100644 --- a/Server/src/main/core/game/node/entity/combat/equipment/WeaponInterface.java +++ b/Server/src/main/core/game/node/entity/combat/equipment/WeaponInterface.java @@ -402,8 +402,8 @@ public final class WeaponInterface extends Component { return; } boolean defensive = player.getSettings().getAttackStyleIndex() == 3; - player.getPacketDispatch().sendInterfaceConfig(Components.WEAPON_STAFF_SEL_90, defAutocastBookChild, defensive); - player.getPacketDispatch().sendInterfaceConfig(Components.WEAPON_STAFF_SEL_90, stdAutocastBookChild, !defensive); + setComponentVisibility(player, Components.WEAPON_STAFF_SEL_90, defAutocastBookChild, defensive); + setComponentVisibility(player, Components.WEAPON_STAFF_SEL_90, stdAutocastBookChild, !defensive); current = (CombatSpell) (modern ? SpellBookManager.SpellBook.MODERN.getSpell(data[buttonId]) : SpellBookManager.SpellBook.ANCIENT.getSpell(data[buttonId])); player.getProperties().setAutocastSpell(current); setAttribute(player, attributeAutocastButtonId, buttonId);