From 3c74d530e6f40acb8d21bb4a9e9322524f4f0080 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Fri, 13 Mar 2015 23:28:28 +0100 Subject: [PATCH] Tweaked builtin_falling mod - Set the area of prohibition to dump buckets to 4, before 7 - And correct smalls spelling mistakes --- mods/builtin_falling/func.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/builtin_falling/func.lua b/mods/builtin_falling/func.lua index 32b0b80e..18f95f02 100755 --- a/mods/builtin_falling/func.lua +++ b/mods/builtin_falling/func.lua @@ -115,7 +115,7 @@ end minetest.register_on_dignode(on_dignode) -- --- Rewirte of all item you need +-- Rewrite of all item you need -- function add_falling_protect_item(named) minetest.override_item(named, { @@ -158,7 +158,7 @@ function is_protected_area(p, zone, name) end -- --- rewirte of bukket +-- rewrite of bucket -- function add_protected_bukket_liquid(nameofbukket,liquidsourcename) @@ -171,8 +171,8 @@ function add_protected_bukket_liquid(nameofbukket,liquidsourcename) -- Check if pointing to a buildable node local n = minetest.get_node(pointed_thing.under) - if is_protected_area(pointed_thing.under, 7 ,user:get_player_name()) then - minetest.chat_send_player(user:get_player_name(),"You cant place here - Too short of a protected area.") + if is_protected_area(pointed_thing.under, 4 ,user:get_player_name()) then + minetest.chat_send_player(user:get_player_name(),"You can't place here - Too short of a protected area. (less than or equal to 4 blocks)") if minetest.is_protected(pointed_thing.under,user:get_player_name()) then minetest.log("action", user:get_player_name().. " try use "..nameofbukket.." at protected pos ".. minetest.pos_to_string(pointed_thing.under)) end