Fix another default/item_entity.lua crash
This commit is contained in:
parent
e6f053f2cf
commit
dc72f1d10e
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@ local item = {
|
|||
if self.ignite_timer > 10 then
|
||||
self.ignite_timer = 0
|
||||
|
||||
local node = minetest.get_node_or_nil(self.object:get_pos())
|
||||
local pos = self.object:get_pos()
|
||||
if not pos then
|
||||
return
|
||||
end
|
||||
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if not node then
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue