diff --git a/data/plugins/navigation/door/door.rb b/data/plugins/navigation/door/door.rb index 81d96f52..3625ed44 100644 --- a/data/plugins/navigation/door/door.rb +++ b/data/plugins/navigation/door/door.rb @@ -26,9 +26,7 @@ end # MessageListener for opening and closing doors. on :message, :first_object_action do |player, message| if DoorUtil::is_door?(message.id) - puts "Player: #{player.position}, door: #{message.position}" door = DoorUtil::get_door_object(message.position, message.id) - DoorUtil::toggle(door) unless door.nil? - # player.start_action(OpenDoorAction.new(player, door)) unless door.nil? + player.start_action(OpenDoorAction.new(player, door)) unless door.nil? end end \ No newline at end of file diff --git a/data/plugins/navigation/door/util.rb b/data/plugins/navigation/door/util.rb index 16d16e06..00df5474 100644 --- a/data/plugins/navigation/door/util.rb +++ b/data/plugins/navigation/door/util.rb @@ -59,7 +59,7 @@ module DoorUtil else toggled_position = translate_door_position(door) toggled_orientation = translate_door_orientation(door) - toggled_door = DynamicGameObject.createPublic($world, door.id, toggled_position, door.type, toggled_orientation) + toggled_door = DynamicGameObject.create_public($world, door.id, toggled_position, door.type, toggled_orientation) toggled_region = $world.region_repository.from_position(toggled_position) toggled_region.add_entity(toggled_door)