move is_cauldron to the right place

This commit is contained in:
AFCMS 2021-03-27 11:57:07 +01:00
parent 69da355f96
commit 989384f362
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1,5 @@
mcl_cauldrons.registered_cauldrons = {}
function mcl_cauldrons.is_cauldron(name)
return minetest.get_item_group(name, "cauldron") ~= 0
end

View File

@ -39,10 +39,6 @@ function mcl_cauldrons.add_cauldron_level(pos, type, number)
return number, not current == number
end
function mcl_cauldrons.is_cauldron(name)
return minetest.get_item_group(name, "cauldron") ~= 0
end
function mcl_cauldrons.take_cauldron(pos, itemstack, user, sounds)
local nn = minetest.get_node(pos)
if mcl_cauldrons.registered_cauldrons[nn.name] and mcl_cauldrons.registered_cauldrons[nn.name].bucket then