mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Notify area listeners upon login
This commit is contained in:
1 parent
e4d01e6e54
commit
18a4d69443
1 file changed
+8
@@ -67,6 +67,14 @@ class Area
|
||||
|
||||
end
|
||||
|
||||
on :login do |event|
|
||||
player = event.player
|
||||
|
||||
@areas.each do |area|
|
||||
area.entered(player) if player.position.inside(area)
|
||||
end
|
||||
end
|
||||
|
||||
# Listen for the MobPositionUpdateEvent and update the area listeners if appropriate.
|
||||
on :mob_position_update do |event|
|
||||
mob = event.mob
|
||||
|
||||
Reference in new issue
Block a user