Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
minetest_game
Commits
545ec074
Commit
545ec074
authored
4 years ago
by
sfan5
Browse files
Options
Downloads
Patches
Plain Diff
Fix creative category sorting in certain cases
parent
c1f41720
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
mods/creative/inventory.lua
+4
-3
4 additions, 3 deletions
mods/creative/inventory.lua
with
4 additions
and
3 deletions
mods/creative/inventory.lua
+
4
−
3
View file @
545ec074
...
...
@@ -208,11 +208,12 @@ minetest.register_on_mods_loaded(function()
for
name
,
def
in
pairs
(
minetest
.
registered_items
)
do
local
group
=
def
.
groups
or
{}
if
group
.
node
or
minetest
.
registered_nodes
[
name
]
then
local
nogroup
=
not
(
group
.
node
or
group
.
tool
or
group
.
craftitem
)
if
group
.
node
or
(
nogroup
and
minetest
.
registered_nodes
[
name
])
then
registered_nodes
[
name
]
=
def
elseif
group
.
tool
or
minetest
.
registered_tools
[
name
]
then
elseif
group
.
tool
or
(
nogroup
and
minetest
.
registered_tools
[
name
]
)
then
registered_tools
[
name
]
=
def
elseif
group
.
craftitem
or
minetest
.
registered_craftitems
[
name
]
then
elseif
group
.
craftitem
or
(
nogroup
and
minetest
.
registered_craftitems
[
name
]
)
then
registered_craftitems
[
name
]
=
def
end
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