mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-12 08:53:21 +01:00
fix syntax errors
This commit is contained in:
parent
621ca53d28
commit
f02b1d0b33
@ -14,14 +14,14 @@ StagedVoxelRegion.__index = StagedVoxelRegion
|
|||||||
StagedVoxelRegion.__name = "StagedVoxelRegion" -- A hack to allow identification in wea.inspect
|
StagedVoxelRegion.__name = "StagedVoxelRegion" -- A hack to allow identification in wea.inspect
|
||||||
|
|
||||||
|
|
||||||
local function make_instance(tbl) {
|
local function make_instance(tbl)
|
||||||
local result = tbl
|
local result = tbl
|
||||||
if result == nil then
|
if result == nil then
|
||||||
result = {}
|
result = {}
|
||||||
end
|
end
|
||||||
setmetatable(result, StagedVoxelRegion)
|
setmetatable(result, StagedVoxelRegion)
|
||||||
return result
|
return result
|
||||||
}
|
end
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
@ -67,8 +67,8 @@ function StagedVoxelRegion.NewFromRaw(pos1, pos2, data, param2)
|
|||||||
return make_instance({
|
return make_instance({
|
||||||
name = "untitled",
|
name = "untitled",
|
||||||
description = "",
|
description = "",
|
||||||
pos1 = pos1:clone()
|
pos1 = pos1:clone(),
|
||||||
pos2 = pos2:clone()
|
pos2 = pos2:clone(),
|
||||||
tables = {
|
tables = {
|
||||||
data = data,
|
data = data,
|
||||||
param2 = param2
|
param2 = param2
|
||||||
|
Loading…
Reference in New Issue
Block a user