Fix buggy geology.wetten function

Function did not work because of renaming of mod (10 characters instead of 9 characters long)
This commit is contained in:
Wuzzy 2014-06-13 16:34:36 +02:00
parent eecf014ef2
commit 7f7e845742

View File

@ -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