mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Disable cocoa generator for non v6 mapgens
This commit is contained in:
parent
f132bc78a3
commit
077242efa4
1 changed files with 43 additions and 42 deletions
|
@ -184,10 +184,10 @@ crop_def.selection_box = {
|
||||||
crop_def.drop = "mcl_dye:brown 3"
|
crop_def.drop = "mcl_dye:brown 3"
|
||||||
minetest.register_node("mcl_cocoas:cocoa_3", table.copy(crop_def))
|
minetest.register_node("mcl_cocoas:cocoa_3", table.copy(crop_def))
|
||||||
|
|
||||||
-- Add random cocoa pods to jungle trees
|
-- Add random cocoa pods to jungle trees (v6 only)
|
||||||
|
|
||||||
-- TODO: Do this more efficiently, with LuaVoxelManip
|
if minetest.get_mapgen_setting("mg_name") == "v6" then
|
||||||
minetest.register_on_generated(function(minp, maxp)
|
minetest.register_on_generated(function(minp, maxp)
|
||||||
|
|
||||||
if maxp.y < 0 then
|
if maxp.y < 0 then
|
||||||
return
|
return
|
||||||
|
@ -228,7 +228,8 @@ minetest.register_on_generated(function(minp, maxp)
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Cocoa growth",
|
label = "Cocoa growth",
|
||||||
|
|
Loading…
Reference in a new issue