Fix lava can being able to hold 16 sources
authorBryant Mairs <bwmairs@ucsc.edu>
Tue, 3 Dec 2013 06:02:07 +0000 (22:02 -0800)
committerShadowNinja <shadowninja@minetest.net>
Tue, 3 Dec 2013 16:00:41 +0000 (11:00 -0500)
technic/tools/cans.lua

index 44846e43cba6eb369c3effd0bec06ad0e52e2378..c1c671395a4de5156c862bd256af99261b117cbc 100644 (file)
@@ -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))