From 65e7f96ef86ec49956c8dbb9e3bab090c7a38181 Mon Sep 17 00:00:00 2001 From: "0gb.us" <0gb.us@0gb.us> Date: Sun, 14 Apr 2013 18:27:20 -0700 Subject: [PATCH] Made /drain work below sea level. The fact that you couldn't drain the ocean was bothering some people. --- 0gb.us_game/mods/drain_0gb_us/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/0gb.us_game/mods/drain_0gb_us/init.lua b/0gb.us_game/mods/drain_0gb_us/init.lua index eb6bec8..5a23659 100644 --- a/0gb.us_game/mods/drain_0gb_us/init.lua +++ b/0gb.us_game/mods/drain_0gb_us/init.lua @@ -18,9 +18,8 @@ minetest.register_chatcommand("drain", { end local center = landclaim_0gb_us.get_chunk_center(pos) - local min = math.max(center.y-7.5, 2) - for y = min,center.y+7.5 do + for y = center.y-7.5,center.y+7.5 do for x = center.x-7.5,center.x+7.5 do for z = center.z-7.5,center.z+7.5 do local node = minetest.env:get_node_or_nil({x=x,y=y,z=z})