From 5f9afae5d9f110bb8bdecf362da03ed9f14a95bf Mon Sep 17 00:00:00 2001 From: Hector Franqui Date: Thu, 19 Oct 2017 21:51:16 -0400 Subject: [PATCH] NPC: Support backward compatibility. --- npc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/npc.lua b/npc.lua index e779837..91a6f48 100755 --- a/npc.lua +++ b/npc.lua @@ -1311,7 +1311,13 @@ function npc.after_activate(self) if self.yaw_before_interaction then self.object:setyaw(self.yaw_before_interaction) end - end + else + -- Temporary code - adds the new state variables + self.actions.move_state = { + is_sitting = false, + is_laying = false + } + end end -- This function is executed on right-click