Skip to content

Commit

Permalink
intersects_protection(): Fix compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx authored and SmallJoker committed Jul 3, 2019
1 parent e7be812 commit 3d530e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/legacy.lua
Expand Up @@ -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

0 comments on commit 3d530e0

Please sign in to comment.