Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add protection support to auto-rotated nodes
  • Loading branch information
ShadowNinja committed Jan 7, 2014
1 parent 811ea6c commit 9551f65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/misc_helpers.lua
Expand Up @@ -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
Expand Down

0 comments on commit 9551f65

Please sign in to comment.