NPC: Support backward compatibility.
This commit is contained in:
parent
ec0392096f
commit
5f9afae5d9
8
npc.lua
8
npc.lua
@ -1311,7 +1311,13 @@ function npc.after_activate(self)
|
|||||||
if self.yaw_before_interaction then
|
if self.yaw_before_interaction then
|
||||||
self.object:setyaw(self.yaw_before_interaction)
|
self.object:setyaw(self.yaw_before_interaction)
|
||||||
end
|
end
|
||||||
end
|
else
|
||||||
|
-- Temporary code - adds the new state variables
|
||||||
|
self.actions.move_state = {
|
||||||
|
is_sitting = false,
|
||||||
|
is_laying = false
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- This function is executed on right-click
|
-- This function is executed on right-click
|
||||||
|
Loading…
Reference in New Issue
Block a user