mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
Fix technic_worldgen incompatible with snow
see https://github.com/Splizard/minetest-mod-snow/issues/14
This commit is contained in:
parent
055ee23431
commit
bfd0c023fa
|
@ -119,7 +119,8 @@ minetest.register_ore({
|
||||||
|
|
||||||
-- Sulfur
|
-- Sulfur
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
local vm = minetest.get_voxel_manip()
|
||||||
|
local emin, emax = vm:read_from_map(minp, maxp)
|
||||||
local a = VoxelArea:new{
|
local a = VoxelArea:new{
|
||||||
MinEdge = {x = emin.x, y = emin.y, z = emin.z},
|
MinEdge = {x = emin.x, y = emin.y, z = emin.z},
|
||||||
MaxEdge = {x = emax.x, y = emax.y, z = emax.z},
|
MaxEdge = {x = emax.x, y = emax.y, z = emax.z},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user