1
0
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:
tenplus1 2021-02-08 20:27:14 +00:00
parent a1bbcb26ec
commit 8bfa177190

View File

@ -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")