mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
nil check for egg drop
This commit is contained in:
parent
a1bbcb26ec
commit
8bfa177190
@ -81,7 +81,7 @@ stepheight = 0.6,
|
||||
return
|
||||
end
|
||||
|
||||
local pos = self.object:get_pos()
|
||||
local pos = self.object:get_pos() ; if not pos then return end
|
||||
|
||||
minetest.add_item(pos, "mobs:egg")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user