From: SmallJoker Date: Sun, 25 Feb 2018 11:30:36 +0000 (+0100) Subject: Rename intersects_protection to is_area_protected X-Git-Tag: 5.0.0~107 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=04a46d0671756b2f8136de5ceac18273f26b75f9;p=oweals%2Fminetest_game.git Rename intersects_protection to is_area_protected --- diff --git a/mods/default/legacy.lua b/mods/default/legacy.lua index 17e30360..123fcd5e 100644 --- a/mods/default/legacy.lua +++ b/mods/default/legacy.lua @@ -41,6 +41,6 @@ default.register_chest = default.chest.register_chest -- Check for a volume intersecting protection function default.intersects_protection(minp, maxp, player_name, interval) minetest.log("warning", "default.intersects_protection() is " .. - "deprecated, use minetest.intersects_protection() instead.") - minetest.intersects_protection(minp, maxp, player_name, interval) + "deprecated, use minetest.is_area_protected() instead.") + minetest.is_area_protected(minp, maxp, player_name, interval) end diff --git a/mods/default/trees.lua b/mods/default/trees.lua index f5ee8ca3..c4403096 100644 --- a/mods/default/trees.lua +++ b/mods/default/trees.lua @@ -504,7 +504,7 @@ function default.sapling_on_place(itemstack, placer, pointed_thing, return itemstack end -- Check tree volume for protection - if minetest.intersects_protection( + if minetest.is_area_protected( vector.add(pos, minp_relative), vector.add(pos, maxp_relative), player_name,