mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 11:17:19 +00:00
Fix small issue with door plugin.
This commit is contained in:
1 parent
af911b032d
commit
af605f41a0
2 files changed
+2
-2
No files matched your search
@@ -18,7 +18,7 @@ class OpenDoorAction < DistancedAction
|
||||
end
|
||||
|
||||
def equals(other)
|
||||
return (get_class == other.get_class && @position == other.position)
|
||||
return (get_class == other.get_class && @door_object == other.door_object)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ module DoorUtil
|
||||
# Gets the door object at the given position, if it exists.
|
||||
def self.get_door_object(position, object_id)
|
||||
game_objects = $world.sector_repository.from_position(position).get_entities(position, EntityType::GAME_OBJECT)
|
||||
game_objects.each { |game_object| return game_object if game_object.get_id == object_id }
|
||||
game_objects.each { |game_object| return game_object if game_object.id == object_id }
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user