i forgot about this
This commit is contained in:
parent
60796421a1
commit
220886d4a0
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
local _fldlib = minetest.get_modpath("fluid_lib") ~= nil
|
|
||||||
|
|
||||||
magicalities.cauldron = { recipes = {} }
|
magicalities.cauldron = { recipes = {} }
|
||||||
|
|
||||||
function magicalities.cauldron.register_recipe(data)
|
function magicalities.cauldron.register_recipe(data)
|
||||||
@ -134,7 +132,7 @@ local _clddef = {
|
|||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if node.name ~= "magicalities:cauldron" then return itemstack end
|
if node.name ~= "magicalities:cauldron" then return itemstack end
|
||||||
if itemstack:get_name() == "bucket:bucket_water" and not _fldlib then
|
if itemstack:get_name() == "bucket:bucket_water" then
|
||||||
node.name = "magicalities:cauldron_with_water"
|
node.name = "magicalities:cauldron_with_water"
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
return ItemStack("bucket:bucket_empty")
|
return ItemStack("bucket:bucket_empty")
|
||||||
|
Loading…
Reference in New Issue
Block a user