Skip to content

Commit 9551f65

Browse files
committedJan 7, 2014
Add protection support to auto-rotated nodes
1 parent 811ea6c commit 9551f65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

Diff for: ‎builtin/misc_helpers.lua

+6
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@ if minetest then
302302
iswall = false
303303
end
304304

305+
if minetest.is_protected(pos, placer:get_player_name()) then
306+
minetest.record_protection_violation(pos,
307+
placer:get_player_name())
308+
return
309+
end
310+
305311
local ndef = minetest.registered_nodes[node.name]
306312
if not ndef or not ndef.buildable_to then
307313
return

0 commit comments

Comments
 (0)
Please sign in to comment.