Skip to content
Permalink
Browse files

intersects_protection(): Fix compatibility code

  • Loading branch information...
luk3yx authored and SmallJoker committed Jul 3, 2019
1 parent e7be812 commit 3d530e0c2573dd9bf1a9299e95ed007fa131647a
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/default/legacy.lua
@@ -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.
You can’t perform that action at this time.