projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
811ea6c
)
Add protection support to auto-rotated nodes
author
ShadowNinja
<shadowninja@minetest.net>
Tue, 7 Jan 2014 01:40:59 +0000
(20:40 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Tue, 7 Jan 2014 02:25:10 +0000
(21:25 -0500)
builtin/misc_helpers.lua
patch
|
blob
|
history
diff --git
a/builtin/misc_helpers.lua
b/builtin/misc_helpers.lua
index 623476915c03f34e7d0c5466434da221f67bde0e..8b2d493b7707df00cc38e940afa2b54cbb9c2f45 100644
(file)
--- a/
builtin/misc_helpers.lua
+++ b/
builtin/misc_helpers.lua
@@
-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