update base:drop component

This commit is contained in:
MihailRis
2024-11-26 11:01:29 +03:00
parent 51eadd397c
commit b3ac1bd8f4
5 changed files with 25 additions and 9 deletions
+12
View File
@@ -0,0 +1,12 @@
function make_read_only(t)
setmetatable(t, {
__newindex = function()
error("table is read-only")
end
})
end
make_read_only(block.properties)
for k,v in pairs(block.properties) do
make_read_only(v)
end