mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix crash in hopper minecarts through missing ent
This commit is contained in:
parent
f335171965
commit
b05fa5562c
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ local function hopper_take_item(self, dtime)
|
||||||
for k, v in pairs(objs) do
|
for k, v in pairs(objs) do
|
||||||
local ent = v:get_luaentity()
|
local ent = v:get_luaentity()
|
||||||
|
|
||||||
if ent._removed or not ent.itemstring or ent.itemstring == "" then
|
if not ent or (ent and ent._removed) or not ent.itemstring or ent.itemstring == "" then
|
||||||
--minetest.log("Ignore this item")
|
--minetest.log("Ignore this item")
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue