Intersects_protection(): Remove from Minetest Game

Add compatibility code with deprecation warning.
This commit is contained in:
paramat 2018-01-27 00:52:14 +00:00 committed by paramat
parent 496a1a24d2
commit 8f85ca57f3
3 changed files with 8 additions and 41 deletions

View file

@ -37,3 +37,10 @@ end
-- Chests
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)
end