forked from VoxeLibre/VoxeLibre
Fixed crash when standing on campfire whilst food is cooking
This commit is contained in:
parent
5b212dd3fe
commit
d92296712c
|
@ -108,8 +108,12 @@ function mcl_campfires.cook_item(pos, elapsed)
|
||||||
if entites then
|
if entites then
|
||||||
for _, entity in ipairs(entites) do
|
for _, entity in ipairs(entites) do
|
||||||
if entity then
|
if entity then
|
||||||
if entity:get_luaentity().name == "mcl_campfires:food_entity" then
|
luaentity = entity:get_luaentity()
|
||||||
food_entity = entity
|
if luaentity then
|
||||||
|
name = luaentity.name
|
||||||
|
if name == "mcl_campfires:food_entity" then
|
||||||
|
food_entity = entity
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue