Fix crash when right clicking with bucket on a filled pot

This commit is contained in:
bri cassa 2021-03-14 22:15:44 +01:00
parent 11f39382ef
commit a9cac59e4c

View File

@ -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" elseif wield_item == "bucket:bucket_water"
or wield_item == "bucket:bucket_river_water" then or wield_item == "bucket:bucket_river_water" then
minetest.set_node(pos, {name="witchcraft:pot_blue", param2=node.param2}) 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 elseif wield_item == "witchcraft:potion_"..combine then
minetest.set_node(pos, {name="witchcraft:pot_"..cresult, param2=node.param2}) minetest.set_node(pos, {name="witchcraft:pot_"..cresult, param2=node.param2})
itemstack:replace("vessels:glass_bottle") itemstack:replace("vessels:glass_bottle")