Skip to content
Snippets Groups Projects
Commit 9551f651 authored by ShadowNinja's avatar ShadowNinja
Browse files

Add protection support to auto-rotated nodes

parent 811ea6cf
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,12 @@ if minetest then
iswall = false
end
if minetest.is_protected(pos, placer:get_player_name()) then
minetest.record_protection_violation(pos,
placer:get_player_name())
return
end
local ndef = minetest.registered_nodes[node.name]
if not ndef or not ndef.buildable_to then
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment