Fix another default/item_entity.lua crash

This commit is contained in:
ANAND 2020-04-24 22:53:14 +05:30
parent e6f053f2cf
commit dc72f1d10e
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -48,7 +48,12 @@ local item = {
if self.ignite_timer > 10 then if self.ignite_timer > 10 then
self.ignite_timer = 0 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 if not node then
return return
end end