From 7c3801a5ce20c1721aba036acae17f5f3b47d5e4 Mon Sep 17 00:00:00 2001 From: zorman2000 Date: Thu, 19 Jan 2017 21:31:40 -0500 Subject: [PATCH] NPC: Fix small bug due to actions API change --- README.md | 2 +- npc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16d81bc..2ae7702 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ __Phase 3__: Trading: In progress - [ ] NPCs will also be able to offer "services", for example, repairing tools, by receiving an item and a payment, and then returning a specific item. __Phase 4__: Actions: Complete -- [x] NPCs should be able to use chests, furnaces, doors, beds and sit on "sittable" nodes (in progress) +- [x] NPCs should be able to use chests, furnaces, doors, beds and sit on "sittable" nodes - [x] NPCs should be able to walk to specific places. Should also be able to open doors, fence gates and any other type of openable node while going to a place. - [x] NPCs should have the ability to identify nodes that belong to him/her, and recall them/ diff --git a/npc.lua b/npc.lua index 681eb39..667101b 100755 --- a/npc.lua +++ b/npc.lua @@ -281,7 +281,7 @@ function npc.lock_actions(self) pos.y = self.object:getpos().y end -- Stop NPC - npc.actions.stand({pos=pos}) + npc.actions.stand(self, {pos=pos}) -- Avoid all timer execution self.actions.action_timer_lock = true -- Reset timer so that it has some time after interaction is done