mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 02:49:46 +00:00
reverting it because voices are not reasom
This reverts commit ecc4c1794e.
This commit is contained in:
parent
ecc4c1794e
commit
24718a2993
4 changed files with 16 additions and 39 deletions
|
|
@ -1,19 +1,12 @@
|
|||
content_report = nil
|
||||
|
||||
function delete_content()
|
||||
local blocks = {}
|
||||
local items = {}
|
||||
local units = {}
|
||||
for i, entry in ipairs(content_report.content) do
|
||||
local type = entry.type
|
||||
if type == "block" then
|
||||
table.insert(blocks, entry.name)
|
||||
elseif type == "item" then
|
||||
table.insert(items, entry.name)
|
||||
end
|
||||
table.insert(units, entry.name)
|
||||
end
|
||||
local request = {
|
||||
blocks = blocks,
|
||||
items = items
|
||||
units = units
|
||||
}
|
||||
app.delete_world_content(content_report.world, request, true)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue