mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
added obj nil check
This commit is contained in:
parent
ffefd49c7b
commit
4eb1c937e5
6
api.lua
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user