mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-29 21:30:26 +02:00
Intersects_protection(): Remove from Minetest Game
Add compatibility code with deprecation warning.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user