mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Add protection support to auto-rotated nodes
This commit is contained in:
@@ -302,6 +302,12 @@ if minetest then
|
|||||||
iswall = false
|
iswall = false
|
||||||
end
|
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]
|
local ndef = minetest.registered_nodes[node.name]
|
||||||
if not ndef or not ndef.buildable_to then
|
if not ndef or not ndef.buildable_to then
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user