From c3e877a1cb2f21fcc6aa7a7bb488e0209af026ba Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 8 Aug 2021 18:33:31 -0400
Subject: [PATCH] Fix: Fixed move command, now works.

---
 lib/aethyr/core/actions/commands/move.rb | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib/aethyr/core/actions/commands/move.rb b/lib/aethyr/core/actions/commands/move.rb
index 653c991..1f5e9a2 100644
--- a/lib/aethyr/core/actions/commands/move.rb
+++ b/lib/aethyr/core/actions/commands/move.rb
@@ -31,11 +31,14 @@ module Aethyr
             room.remove(self[:agent])
             new_room.add(self[:agent])
             self[:agent].container = new_room.game_object_id
-            self[:to_player] = "You move #{self[:direction]}."
-            self[:to_other] = "#{self[:agent].name} leaves #{self[:direction]}."
-            self[:to_blind_other] = "You hear someone leave."
+            room_out_data = {}
+            room_out_data[:player] = self[:agent]
+            room_out_data[:to_player] = "You move #{self[:direction]}."
+            room_out_data[:to_other] = "#{self[:agent].name} leaves #{self[:direction]}."
+            room_out_data[:to_blind_other] = "You hear someone leave."
+            room_out_event = Event.new(room_out_data)
 
-            room.out_event(event)
+            room.out_event(room_out_event)
             look_text = new_room.look(self[:agent])
             out_text = Window.split_message(look_text, 79).join("\n")
             self[:agent].output(out_text, message_type: :look, internal_clear: true)
-- 
GitLab