Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
  • Loading branch information
techno-sam and srifqi committed Jun 3, 2023
1 parent a1de36d commit 20c6f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2226,10 +2226,10 @@ For non-blending mode:
For blending mode:
```lua
{
-- specify color for a specific durability percent, and blend between them
-- specify color for a specific durability percent, and blend between them
[0.2] = "#ff00ff",
[0.45] = "#c0ffee",
-- used for 0% and 100% durability if no color explicitly specified
-- used for 0% and 100% durability if no color explicitly specified
default = "#ffff00",
blend = true
}
Expand Down
2 changes: 1 addition & 1 deletion games/devtest/mods/basetools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ local wear_colors = { nil, nil, nil, "#5865f2", "slateblue",
min_durability = 0.45,
max_durability = 0.6
},
default= "#ffff00", -- color to use if no other ranges match the durability
default = "#ffff00", -- color to use if no other ranges match the durability
blend = false
}, nil, nil, nil }
local wear_color_desc = { nil, nil, nil, "Solid color: #5865f2", "Solid color: slateblue", "Ranges from blue to yellow to red", "Random blocks", nil, nil, nil }
Expand Down

0 comments on commit 20c6f7a

Please sign in to comment.