nil check for egg drop

This commit is contained in:
tenplus1 2021-02-08 20:27:14 +00:00
parent a1bbcb26ec
commit 8bfa177190
1 changed files with 1 additions and 1 deletions

View File

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