mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
lua: pack.data_file(packid, name)
This commit is contained in:
parent
daaba374a3
commit
739282dce9
7 changed files with 24 additions and 12 deletions
|
|
@ -100,6 +100,11 @@ function pack.is_installed(packid)
|
|||
return file.isfile(packid..":package.json")
|
||||
end
|
||||
|
||||
function pack.data_file(packid, name)
|
||||
file.mkdirs("world:data/"..packid)
|
||||
return "world:data/"..packid.."/"..name
|
||||
end
|
||||
|
||||
vec2_mt = {}
|
||||
function vec2_mt.__tostring(self)
|
||||
return "vec2("..self[1]..", "..self[2]..")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue