From 7f7e8457427a5efc0574fc6cd54b2559c121492e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 13 Jun 2014 16:34:36 +0200 Subject: [PATCH] Fix buggy geology.wetten function Function did not work because of renaming of mod (10 characters instead of 9 characters long) --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e32ebe1..157beae 100644 --- a/init.lua +++ b/init.lua @@ -522,7 +522,7 @@ end function pedology.wetten(pos) local node = minetest.get_node(pos) local wet = minetest.get_item_group(node.name, "wet") - local cutbasename = string.sub(node.name,9,#node.name-2) + local cutbasename = string.sub(node.name,10,#node.name-2) if pedology.maxwet[cutbasename] == nil then return elseif wet > pedology.maxwet[cutbasename] then