mirror of
https://github.com/minetest-mods/nether.git
synced 2024-12-28 20:00:30 +01:00
Remove debug code.
This commit is contained in:
parent
32affba608
commit
483cbe916d
8
init.lua
8
init.lua
@ -3,7 +3,6 @@
|
|||||||
local NETHER_DEPTH = -5000
|
local NETHER_DEPTH = -5000
|
||||||
local TCAVE = 0.6
|
local TCAVE = 0.6
|
||||||
local BLEND = 128
|
local BLEND = 128
|
||||||
local DEBUG = false
|
|
||||||
|
|
||||||
|
|
||||||
-- 3D noise
|
-- 3D noise
|
||||||
@ -603,8 +602,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local t1 = os.clock()
|
|
||||||
|
|
||||||
local x1 = maxp.x
|
local x1 = maxp.x
|
||||||
local y1 = maxp.y
|
local y1 = maxp.y
|
||||||
local z1 = maxp.z
|
local z1 = maxp.z
|
||||||
@ -702,9 +699,4 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
vm:calc_lighting()
|
vm:calc_lighting()
|
||||||
vm:update_liquids()
|
vm:update_liquids()
|
||||||
vm:write_to_map()
|
vm:write_to_map()
|
||||||
|
|
||||||
if DEBUG then
|
|
||||||
local chugent = math.ceil((os.clock() - t1) * 1000)
|
|
||||||
print ("[nether] generate chunk " .. chugent .. " ms")
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user