From 989384f362742751051d942734fd02d5ddfbfe1e Mon Sep 17 00:00:00 2001 From: AFCMS Date: Sat, 27 Mar 2021 11:57:07 +0100 Subject: [PATCH] move is_cauldron to the right place --- mods/ITEMS/mcl_cauldrons/api.lua | 4 ++++ mods/ITEMS/mcl_cauldrons/init.lua | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_cauldrons/api.lua b/mods/ITEMS/mcl_cauldrons/api.lua index 2a8951064..6d84a9c58 100644 --- a/mods/ITEMS/mcl_cauldrons/api.lua +++ b/mods/ITEMS/mcl_cauldrons/api.lua @@ -1 +1,5 @@ mcl_cauldrons.registered_cauldrons = {} + +function mcl_cauldrons.is_cauldron(name) + return minetest.get_item_group(name, "cauldron") ~= 0 +end diff --git a/mods/ITEMS/mcl_cauldrons/init.lua b/mods/ITEMS/mcl_cauldrons/init.lua index 6f59ede59..c82357195 100644 --- a/mods/ITEMS/mcl_cauldrons/init.lua +++ b/mods/ITEMS/mcl_cauldrons/init.lua @@ -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