From cfb7ff985c90430c3419dde8f811ea5e2a8c1614 Mon Sep 17 00:00:00 2001 From: Zheyu Shen Date: Sat, 19 Apr 2014 03:06:45 +0000 Subject: [PATCH 1/2] Fix wrong function call for unbanning a player --- protection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protection.lua b/protection.lua index 5adcd7e..e3ce8d2 100644 --- a/protection.lua +++ b/protection.lua @@ -90,7 +90,7 @@ function landrush.do_autoban(pos,name) landrush.offense[name].lastpos = nil if ( landrush.offense[name].bancount < 4 ) then - minetest.after( (banlength * 60), minetest.unban_name_or_ip,name ) + minetest.after( (banlength * 60), minetest.unban_player_or_ip,name ) end return From 7576683356f662e4d754dba101ba958fb0af2832 Mon Sep 17 00:00:00 2001 From: Zheyu Date: Sat, 19 Apr 2014 12:04:33 +0800 Subject: [PATCH 2/2] Fix inconsistent y-axis chunk values --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 839c814..e4263e4 100644 --- a/functions.lua +++ b/functions.lua @@ -7,10 +7,10 @@ function landrush.get_chunk(pos) y = - 32000 elseif ( pos.y < -60 ) then y = -200 - elseif ( pos.y < 140 ) then + elseif ( pos.y < 120 ) then y = -30 else - y = 90 + y = 120 end