mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
nil check for egg drop
This commit is contained in:
parent
a1bbcb26ec
commit
8bfa177190
@ -81,7 +81,7 @@ stepheight = 0.6,
|
|||||||
return
|
return
|
||||||
end
|
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")
|
minetest.add_item(pos, "mobs:egg")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user