mirror of
https://repo.or.cz/minetest_pedology.git
synced 2024-12-28 02:40:21 +01:00
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:
parent
eecf014ef2
commit
7f7e845742
2
init.lua
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user