From 578919c4696dc30e674d7a50a3d23e2f36184b4b Mon Sep 17 00:00:00 2001 From: HybridDog Date: Wed, 4 May 2016 18:42:45 +0200 Subject: [PATCH] fix old newbie mistake --- nether/init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nether/init.lua b/nether/init.lua index 14c281c..be2390c 100644 --- a/nether/init.lua +++ b/nether/init.lua @@ -139,7 +139,7 @@ local function do_ws_func(depth, a, x) for k=1,depth do y = y + math.sin(k^a * n) / k^a end - return SIZE*y/math.pi + return SIZE * y / math.pi end local chunksize = minetest.setting_get("chunksize") or 5 @@ -161,10 +161,6 @@ end local function dif(z1, z2) - if z1 < 0 - and z2 < 0 then - z1,z2 = -z1,-z2 - end return math.abs(z1-z2) end