Add protection support to auto-rotated nodes

stable-0.4
ShadowNinja 2014-01-06 20:40:59 -05:00
parent 811ea6cfc0
commit 9551f651cb
1 changed files with 6 additions and 0 deletions

View File

@ -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