mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Fix crash when accessing Y Slice menu
This commit is contained in:
parent
1722d33330
commit
31ed6fbbd0
2
init.lua
2
init.lua
@ -388,9 +388,11 @@ advschem.add_form("slice", {
|
||||
local done_button = "button[5,7.18;2,1;done_add;Done]"
|
||||
if self.panel_edit then
|
||||
done_button = "button[5,7.18;2,1;done_edit;Done]"
|
||||
if slice_list[self.selected] then
|
||||
ypos_default = slice_list[self.selected].ypos
|
||||
prob_default = slice_list[self.selected].prob
|
||||
end
|
||||
end
|
||||
|
||||
form = form..[[
|
||||
field[0.3,7.5;2.5,1;ypos;Y position (max. ]]..(meta.y_size - 1)..[[):;]]..ypos_default..[[]
|
||||
|
Loading…
Reference in New Issue
Block a user