mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-21 09:02:07 -07:00
Fixed SpellCastEvents not being dispatched properly
Fixes achievement diary tasks that trigger on spell cast
This commit is contained in:
parent
1f89ef3e4d
commit
10f1b1515f
1 changed files with 1 additions and 4 deletions
|
|
@ -44,10 +44,7 @@ public final class MagicBookInterface extends ComponentPlugin {
|
|||
|
||||
SpellListeners.run(button, SpellListener.NONE, SpellUtils.getBookFromInterface(component.getId()),player,null);
|
||||
boolean result = MagicSpell.castSpell(player, spellBook, button, player);
|
||||
|
||||
if (result) {
|
||||
player.dispatch(new SpellCastEvent(spellBook, button));
|
||||
}
|
||||
player.dispatch(new SpellCastEvent(spellBook, button));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue