mirror of
https://github.com/HybridDog/nether-pack.git
synced 2025-01-12 19:00:24 +01:00
fix old newbie mistake
This commit is contained in:
parent
03da51be24
commit
578919c469
@ -139,7 +139,7 @@ local function do_ws_func(depth, a, x)
|
|||||||
for k=1,depth do
|
for k=1,depth do
|
||||||
y = y + math.sin(k^a * n) / k^a
|
y = y + math.sin(k^a * n) / k^a
|
||||||
end
|
end
|
||||||
return SIZE*y/math.pi
|
return SIZE * y / math.pi
|
||||||
end
|
end
|
||||||
|
|
||||||
local chunksize = minetest.setting_get("chunksize") or 5
|
local chunksize = minetest.setting_get("chunksize") or 5
|
||||||
@ -161,10 +161,6 @@ end
|
|||||||
|
|
||||||
|
|
||||||
local function dif(z1, z2)
|
local function dif(z1, z2)
|
||||||
if z1 < 0
|
|
||||||
and z2 < 0 then
|
|
||||||
z1,z2 = -z1,-z2
|
|
||||||
end
|
|
||||||
return math.abs(z1-z2)
|
return math.abs(z1-z2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user