From: Bryant Mairs Date: Tue, 3 Dec 2013 06:02:07 +0000 (-0800) Subject: Fix lava can being able to hold 16 sources X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ef70cbfbf22b2e8c2c11d679224b1929188bd309;p=zefram%2Fminetest%2Ftechnic.git Fix lava can being able to hold 16 sources --- 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))