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
6
init.lua
6
init.lua
@ -388,8 +388,10 @@ advschem.add_form("slice", {
|
|||||||
local done_button = "button[5,7.18;2,1;done_add;Done]"
|
local done_button = "button[5,7.18;2,1;done_add;Done]"
|
||||||
if self.panel_edit then
|
if self.panel_edit then
|
||||||
done_button = "button[5,7.18;2,1;done_edit;Done]"
|
done_button = "button[5,7.18;2,1;done_edit;Done]"
|
||||||
ypos_default = slice_list[self.selected].ypos
|
if slice_list[self.selected] then
|
||||||
prob_default = slice_list[self.selected].prob
|
ypos_default = slice_list[self.selected].ypos
|
||||||
|
prob_default = slice_list[self.selected].prob
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
form = form..[[
|
form = form..[[
|
||||||
|
Loading…
Reference in New Issue
Block a user