Don't crash!
This commit is contained in:
parent
19fc9e8a11
commit
b5fb7cb125
@ -147,6 +147,9 @@ for _, type in ipairs(buckets.types) do
|
|||||||
end
|
end
|
||||||
local n = minetest.env:get_node(pointed_thing.under)
|
local n = minetest.env:get_node(pointed_thing.under)
|
||||||
local liquiddef = realtest.registered_liquids[n.name]
|
local liquiddef = realtest.registered_liquids[n.name]
|
||||||
|
if not liquiddef then
|
||||||
|
return
|
||||||
|
end
|
||||||
local full_name = empty_name.."_with_"..liquiddef.name
|
local full_name = empty_name.."_with_"..liquiddef.name
|
||||||
if liquiddef and n.name == liquiddef.source and minetest.registered_items[full_name] then
|
if liquiddef and n.name == liquiddef.source and minetest.registered_items[full_name] then
|
||||||
minetest.env:add_node(pointed_thing.under, {name="air"})
|
minetest.env:add_node(pointed_thing.under, {name="air"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user