forked from mtcontrib/witchcraft
Fix crash when right clicking with bucket on a filled pot
This commit is contained in:
parent
11f39382ef
commit
a9cac59e4c
2
init.lua
2
init.lua
@ -674,7 +674,7 @@ for _, row in ipairs(witchcraft.pot_new) do --change 'pot_new' to 'pot' for the
|
||||
elseif wield_item == "bucket:bucket_water"
|
||||
or wield_item == "bucket:bucket_river_water" then
|
||||
minetest.set_node(pos, {name="witchcraft:pot_blue", param2=node.param2})
|
||||
item:replace("bucket:bucket_empty")
|
||||
itemstack:replace("bucket:bucket_empty")
|
||||
elseif wield_item == "witchcraft:potion_"..combine then
|
||||
minetest.set_node(pos, {name="witchcraft:pot_"..cresult, param2=node.param2})
|
||||
itemstack:replace("vessels:glass_bottle")
|
||||
|
Loading…
Reference in New Issue
Block a user