mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Rebase the MessageHandler, MessageHandlerChain and MessageHandlerChainSet
Rebased several other pieces of code
This commit is contained in:
@@ -12,10 +12,10 @@ ANIMATIONS = {
|
||||
}
|
||||
|
||||
# Intercept the button message.
|
||||
on :message, :button do |ctx, player, message|
|
||||
on :message, :button do |player, message|
|
||||
anim = ANIMATIONS[message.widget_id]
|
||||
unless anim == nil
|
||||
player.play_animation(anim)
|
||||
ctx.break_handler_chain
|
||||
message.terminate
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user