mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
update base:drop component
This commit is contained in:
parent
51eadd397c
commit
b3ac1bd8f4
5 changed files with 25 additions and 9 deletions
12
res/scripts/post_content.lua
Normal file
12
res/scripts/post_content.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue