Skip to content

Commit

Permalink
Make search boxes brighter (ldtteam#9232)
Browse files Browse the repository at this point in the history
Makes rack search boxes brighter
  • Loading branch information
uecasm committed Jul 9, 2023
1 parent b84d64d commit 25d37a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private void locate(final Button button)
{
// Varies the color between red(1 pc) over yellow(32 pcs) to green(64+ pcs)
// mixing equation: alpha | red part | green part
final int color = 0x40000000 | (Mth.clamp((int) (0xff * (2.0f - count / 32.0f)), 0, 255) << 16)
final int color = 0x80000000 | (Mth.clamp((int) (0xff * (2.0f - count / 32.0f)), 0, 255) << 16)
| (Mth.clamp((int) (0xff * count / 32.0f), 0, 255) << 8);
HighlightManager.addRenderBox("inventoryHighlight",
new HighlightManager.TimedBoxRenderData().setPos(blockPos)
Expand Down

0 comments on commit 25d37a0

Please sign in to comment.