NPC: Fix small bug due to actions API change

This commit is contained in:
zorman2000 2017-01-19 21:31:40 -05:00
parent 5d2c820d88
commit 7c3801a5ce
2 changed files with 2 additions and 2 deletions

View File

@ -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/

View File

@ -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