Fixed an exploit related to magic.

This commit is contained in:
ceikry
2021-07-02 10:24:37 -05:00
parent 2c9f0e7cf3
commit 60f32629c2
2 changed files with 17 additions and 2 deletions
@@ -464,6 +464,7 @@ public final class WeaponInterface extends Component {
Component component = new Component(id);
component.getDefinition().setTabIndex(0);
component.getDefinition().setType(InterfaceType.TAB);
player.setAttribute("autocast_component",component);
player.getInterfaceManager().openTab(component);
}