Fix small issue with door plugin.

This commit is contained in:
shiver474
2015-03-03 14:39:54 -05:00
parent af911b032d
commit af605f41a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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