1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

intersects_protection(): Fix compatibility code

This commit is contained in:
luk3yx 2019-07-04 05:10:39 +12:00 committed by SmallJoker
parent e7be81242b
commit 3d530e0c25

View File

@ -45,5 +45,5 @@ default.register_chest = default.chest.register_chest
function default.intersects_protection(minp, maxp, player_name, interval)
minetest.log("warning", "default.intersects_protection() is " ..
"deprecated, use minetest.is_area_protected() instead.")
minetest.is_area_protected(minp, maxp, player_name, interval)
return minetest.is_area_protected(minp, maxp, player_name, interval)
end