mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-10 04:10:33 +02:00
mapgen torchspine wasn't having its timer set
This commit is contained in:
@ -473,10 +473,10 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
minetest.after(math.random()*10, function()
|
||||
-- not all of these locations will get a lamp, but it's easier to just set four
|
||||
-- timers than to worry about testing first.
|
||||
minetest.get_node_timer({x=lamp_pos.x+1, y=lamp_pos.y, z=lamp_pos.z}):start(math.random()*60)
|
||||
minetest.get_node_timer({x=lamp_pos.x-1, y=lamp_pos.y, z=lamp_pos.z}):start(math.random()*60)
|
||||
minetest.get_node_timer({x=lamp_pos.x, y=lamp_pos.y, z=lamp_pos.z+1}):start(math.random()*60)
|
||||
minetest.get_node_timer({x=lamp_pos.x, y=lamp_pos.y, z=lamp_pos.z-1}):start(math.random()*60)
|
||||
minetest.get_node_timer({x=lamp_pos.x+1, y=lamp_pos.y, z=lamp_pos.z}):start(math.random()*30)
|
||||
minetest.get_node_timer({x=lamp_pos.x-1, y=lamp_pos.y, z=lamp_pos.z}):start(math.random()*30)
|
||||
minetest.get_node_timer({x=lamp_pos.x, y=lamp_pos.y, z=lamp_pos.z+1}):start(math.random()*30)
|
||||
minetest.get_node_timer({x=lamp_pos.x, y=lamp_pos.y, z=lamp_pos.z-1}):start(math.random()*30)
|
||||
end)
|
||||
elseif building.building_type == "small building" then
|
||||
mapgen_helper.place_schematic_on_data(data, data_param2, area, building.pos, small_building_schematic, building.rotation)
|
||||
|
Reference in New Issue
Block a user