We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 811ea6c commit 9551f65Copy full SHA for 9551f65
builtin/misc_helpers.lua
@@ -302,6 +302,12 @@ if minetest then
302
iswall = false
303
end
304
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
+
311
local ndef = minetest.registered_nodes[node.name]
312
if not ndef or not ndef.buildable_to then
313
return
0 commit comments