content.xml fixing + fixing old bug in new_world.lua
This commit is contained in:
parent
a5aaddb379
commit
c3eb758bb6
@ -4,11 +4,11 @@
|
||||
<button pos='485,545' size='440,40' onclick='menu:back()'>@Cancel</button>
|
||||
|
||||
<image id="move_left" src='gui/check_mark'
|
||||
size='32' margin='218,0,0,0' gravity='top-left'
|
||||
size='32' margin='218,2,0,0' gravity='top-left'
|
||||
color='#FFFFFF50'/>
|
||||
|
||||
<image id="move_left" src='gui/cross'
|
||||
size='32' margin='0,0,219,0' gravity='top-right'
|
||||
size='32' margin='0,2,219,0' gravity='top-right'
|
||||
color='#FFFFFF50'/>
|
||||
|
||||
<panel id='search_panel' size='440,36' pos='15,504' interval='1' color='#0000004C'>
|
||||
|
||||
@ -28,7 +28,8 @@ function on_open()
|
||||
document.content_btn.text = string.format(
|
||||
"%s [%s]", gui.str("Content", "menu"), #pack.get_installed()
|
||||
)
|
||||
if settings.generator == nil then
|
||||
|
||||
if settings.generator == nil or generation.get_generators()[settings.generator] == nil then
|
||||
settings.generator = generation.get_default_generator()
|
||||
end
|
||||
document.generator_btn.text = string.format(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user