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 /api.lua | |
parent | bc86a32af663f8eb0d35af62bdbd56a5c19e9104 (diff) |
added quick error check for self.drops
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 3 |
1 files changed, 2 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 |