1
0
şunun yansıması git://repo.or.cz/rocks.git eşitlendi 2025-12-19 14:15:57 +01:00

Cleanup + debug output.

Bu işleme şunda yer alıyor:
Tomáš Brada
2015-04-18 16:49:14 +02:00
ebeveyn 97b9170653
işleme d1bc2638f3

Dosyayı Görüntüle

@@ -40,7 +40,7 @@ do
-- hook to inject our sedimentary stone to new biomes
local old_register_biome=minetest.register_biome
minetest.register_biome=function(def)
print("[rocks] register_biome .name="..def.name)
--print("[rocks] register_biome .name="..def.name)
for n,v in pairs(def) do
--if type(v)~="table" then print(" "..n.."="..v) end
end
@@ -60,6 +60,7 @@ do
elseif (def.y_min>highland_min-tl) and (def.y_max<highland_max+tl) then btype="highland"
elseif (def.y_min<-3000) and (def.y_max<lowland_min+tl) then btype="ocean"
else minetest.log("error", "/rocks could not guess elevation type for biome "..def.name) end
rocksl.print("/rocks register_biome .name="..def.name.." -> btype="..btype)
-- patch the new biomes with our rocks
if btype=="lowland" then
def.node_filler="rocks:mudstone"