From: ShadowNinja Date: Tue, 7 Jan 2014 01:40:59 +0000 (-0500) Subject: Add protection support to auto-rotated nodes X-Git-Tag: 0.4.10~338 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9551f651cb93b9b3f3cfcee61031c14f472253ce;p=oweals%2Fminetest.git Add protection support to auto-rotated nodes --- diff --git a/builtin/misc_helpers.lua b/builtin/misc_helpers.lua index 623476915..8b2d493b7 100644 --- 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