From ef70cbfbf22b2e8c2c11d679224b1929188bd309 Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Mon, 2 Dec 2013 22:02:07 -0800 Subject: [PATCH] Fix lava can being able to hold 16 sources --- technic/tools/cans.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/tools/cans.lua b/technic/tools/cans.lua index 44846e4..c1c6713 100644 --- a/technic/tools/cans.lua +++ b/technic/tools/cans.lua @@ -40,7 +40,7 @@ minetest.register_tool("technic:water_can", { charge = tonumber(itemstack:get_metadata()) end if node.name == "default:water_source" then - if charge + 1 < 17 then + if charge < water_can_max_load then minetest.remove_node(pointed_thing.under) charge = charge + 1 itemstack:set_metadata(tostring(charge)) @@ -89,7 +89,7 @@ minetest.register_tool("technic:lava_can", { end if node.name == "default:lava_source" then - if charge + 1 < 17 then + if charge < lava_can_max_load then minetest.remove_node(pointed_thing.under) charge = charge + 1 itemstack:set_metadata(tostring(charge)) -- 2.30.2