diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-23 20:25:00 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-23 20:25:00 +0000 |
commit | d5740459307a680159a969d47ec8b2b079fe38c0 (patch) | |
tree | fc05c7938231dfff15ca83e662aa3ff263bddc1b | |
parent | bc86a32af663f8eb0d35af62bdbd56a5c19e9104 (diff) |
added quick error check for self.drops
-rw-r--r-- | api.lua | 3 | ||||
-rw-r--r-- | mount.lua | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ --- Mobs Api (21st January 2017) +-- Mobs Api (23rd January 2017) mobs = {} mobs.mod = "redo" @@ -422,6 +422,7 @@ function check_for_death(self) -- drop items when dead local obj local pos = self.object:getpos() + self.drops = self.drops or {} -- error check for n = 1, #self.drops do @@ -148,6 +148,7 @@ end function mobs.detach(player, offset) force_detach(player) + default.player_set_animation(player, "stand" , 30) local pos = player:getpos() |