diff --git a/compatibility.lua b/compatibility.lua index 8fe4ff5..0109f35 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -520,6 +520,7 @@ if industrialtest.mclAvailable then industrialtest.elementKeys.ice="mcl_core:ice" industrialtest.elementKeys.sandstone="mcl_core:sandstone" industrialtest.elementKeys.dirt="mcl_core:dirt" + industrialtest.elementKeys.grassBlock="mcl_core:dirt_with_grass" industrialtest.elementKeys.obsidian="mcl_core:obsidian" industrialtest.elementKeys.whiteWool="mcl_wool:white" industrialtest.elementKeys.coalBlock="mcl_core:coalblock" @@ -728,6 +729,7 @@ elseif industrialtest.mtgAvailable then industrialtest.elementKeys.ice="default:ice" industrialtest.elementKeys.sandstone="default:sandstone" industrialtest.elementKeys.dirt="default:dirt" + industrialtest.elementKeys.grassBlock="default:dirt_with_grass" industrialtest.elementKeys.obsidian="default:obsidian" industrialtest.elementKeys.whiteWool="wool:white" industrialtest.elementKeys.coalBlock="default:coalblock" diff --git a/mapgen.lua b/mapgen.lua index c191323..f605a98 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -19,7 +19,7 @@ minetest.register_on_generated(function(minp,maxp,seed) return end local center=vector.new((maxp.x-minp.x)/2+ minp.x,(maxp.y-minp.y)/2+minp.y,(maxp.z-minp.z)/2+minp.z) - local pos=minetest.find_node_near(center,maxp.x-minp.x,{"default:dirt_with_grass"}) + local pos=minetest.find_node_near(center,maxp.x-minp.x,{industrialtest.elementKeys.grassBlock}) if pos then industrialtest.makeRubberTree(pos) end