mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
Fix small issue with door plugin.
This commit is contained in:
@@ -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