summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-06-04 20:23:40 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-06-04 20:23:40 +0100
commit4eb1c937e56066dbc8ab7ee833aab23488e93f1a (patch)
treef5a32cb588c2a9479d587b29cba2f3e54702cbd9
parentffefd49c7bc9051235ecc2f67048ab015a8db9b4 (diff)
added obj nil check
-rw-r--r--api.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/api.lua b/api.lua
index 47e114f..9c52a77 100644
--- a/api.lua
+++ b/api.lua
@@ -1,9 +1,9 @@
--- Mobs Api (1st June 2017)
+-- Mobs Api (4th June 2017)
mobs = {}
mobs.mod = "redo"
-mobs.version = "20170601"
+mobs.version = "20170604"
-- Intllib
@@ -359,7 +359,7 @@ local item_drop = function(self, cooked)
y = 6,
z = random(-10, 10) / 9,
})
- else
+ elseif obj then
obj:remove() -- item does not exist
end
end