wip
This commit is contained in:
+1
-4
@@ -163,7 +163,7 @@ function Region:iterate_columns(do_operation)
|
||||
|
||||
self:iterate(
|
||||
self.fill_min.x, self.fill_max.x,
|
||||
0, 0,
|
||||
self.fill_min.y, self.fill_min.y, -- we only want columns, so use a single y value
|
||||
self.fill_min.z, self.fill_max.z,
|
||||
function(x, y, z) do_operation(x, z) end
|
||||
)
|
||||
@@ -263,7 +263,6 @@ function Region:set_meta(name, x, z, value)
|
||||
if not meta_data then
|
||||
meta_data = {}
|
||||
self._meta[name] = meta_data
|
||||
core.debug("adding meta["..name.."]")
|
||||
end
|
||||
|
||||
meta_data[self._emerged_area:index(x, 0, z)] = value
|
||||
@@ -282,8 +281,6 @@ function Region:read_voxels(voxels, fill_min, fill_max)
|
||||
check.is_type("fill_min", fill_min, "table")
|
||||
check.is_type("fill_max", fill_max, "table")
|
||||
|
||||
self:save_voxels()
|
||||
|
||||
self._voxels = voxels
|
||||
self.fill_min = fill_min
|
||||
self.fill_max = fill_max
|
||||
|
||||
Reference in New Issue
Block a user