mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-08 17:10:32 +01:00
Fix invalid slice_list on import
This commit is contained in:
parent
f0c5c2659f
commit
329f394499
4
init.lua
4
init.lua
@ -456,7 +456,7 @@ schemedit.add_form("main", {
|
||||
meta.x_size = schematic.size.x
|
||||
meta.y_size = schematic.size.y
|
||||
meta.z_size = schematic.size.z
|
||||
meta.slices = minetest.serialize(schematic.yslice_prob)
|
||||
meta.slices = minetest.serialize(renumber(schematic.yslice_prob))
|
||||
local special_x_size = meta.x_size
|
||||
local special_y_size = meta.y_size
|
||||
local special_z_size = meta.z_size
|
||||
@ -661,7 +661,7 @@ schemedit.add_form("slice", {
|
||||
meta:set_string("slices", minetest.serialize(renumber(slice_list)))
|
||||
|
||||
-- Update formspec
|
||||
self.selected = 1
|
||||
self.selected = math.min(1, self.selected-1)
|
||||
self.panel_edit = nil
|
||||
schemedit.show_formspec(pos, player, "slice")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user