Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
c53520aa
Commit
c53520aa
authored
9 years ago
by
Jean-Patrick Guerrero
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix attempt to start a world when no world is selected/created
parent
96989e0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/mainmenu/tab_singleplayer.lua
+6
-4
6 additions, 4 deletions
builtin/mainmenu/tab_singleplayer.lua
with
6 additions
and
4 deletions
builtin/mainmenu/tab_singleplayer.lua
+
6
−
4
View file @
c53520aa
...
...
@@ -152,12 +152,14 @@ local function main_button_handler(this, fields, name, tabdata)
world_doubleclick
or
fields
[
"key_enter"
]
then
local
selected
=
core
.
get_textlist_index
(
"sp_worlds"
)
gamedata
.
selected_world
=
menudata
.
worldlist
:
get_raw_index
(
selected
)
if
selected
~=
nil
then
gamedata
.
selected_world
=
menudata
.
worldlist
:
get_raw_index
(
selected
)
gamedata
.
singleplayer
=
true
if
selected
~=
nil
and
gamedata
.
selected_world
~=
0
then
gamedata
.
singleplayer
=
true
core
.
start
()
else
gamedata
.
errormessage
=
fgettext
(
"No world created or selected!"
)
end
return
true
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment