mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +00:00
Rename intersects_protection to is_area_protected
This commit is contained in:
parent
70d91bc64d
commit
04a46d0671
2 changed files with 3 additions and 3 deletions
|
@ -41,6 +41,6 @@ default.register_chest = default.chest.register_chest
|
||||||
-- Check for a volume intersecting protection
|
-- Check for a volume intersecting protection
|
||||||
function default.intersects_protection(minp, maxp, player_name, interval)
|
function default.intersects_protection(minp, maxp, player_name, interval)
|
||||||
minetest.log("warning", "default.intersects_protection() is " ..
|
minetest.log("warning", "default.intersects_protection() is " ..
|
||||||
"deprecated, use minetest.intersects_protection() instead.")
|
"deprecated, use minetest.is_area_protected() instead.")
|
||||||
minetest.intersects_protection(minp, maxp, player_name, interval)
|
minetest.is_area_protected(minp, maxp, player_name, interval)
|
||||||
end
|
end
|
||||||
|
|
|
@ -504,7 +504,7 @@ function default.sapling_on_place(itemstack, placer, pointed_thing,
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
-- Check tree volume for protection
|
-- Check tree volume for protection
|
||||||
if minetest.intersects_protection(
|
if minetest.is_area_protected(
|
||||||
vector.add(pos, minp_relative),
|
vector.add(pos, minp_relative),
|
||||||
vector.add(pos, maxp_relative),
|
vector.add(pos, maxp_relative),
|
||||||
player_name,
|
player_name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue