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
1 changed files with 1 additions and 1 deletions

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