Skip to content

Commit

Permalink
fix terminal front face being invisible
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Oct 5, 2024
1 parent 0a92187 commit ea14e97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
21 changes: 6 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,20 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog],
and this project adheres to [Semantic Versioning].

## Unreleased

### Changed

- switched to deferred registration for menus and removed mixin

### Fixed

- fixed block breaking particles of the Requester
- fixed Requester Terminal front face being invisible in its item form

## [1.1.7] - 2024-09-03
### Known Bugs

Initial 1.21.1 release!
- scroll bar renders little sections on its background
- scroll bar is always visible

### Fixed
## [1.1.7] - 2024-09-03

- initial 1.21.1 release
- fixed Requester handling jobs on different grids ([#21](https://github.com/AlmostReliable/merequester/issues/21))

### Known Bugs
Expand All @@ -29,9 +24,5 @@ Initial 1.21.1 release!
- scroll bar renders little sections on its background
- scroll bar is always visible

<!-- Links -->
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html

<!-- Versions -->
[1.1.7]: https://github.com/AlmostReliable/merequester/releases/tag/v1.20.1-neoforge-1.1.7
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.almostreliable.merequester;

import net.minecraft.client.color.item.ItemColor;
import net.minecraft.util.FastColor;

import com.almostreliable.merequester.client.RequesterScreen;
import com.almostreliable.merequester.client.RequesterTerminalScreen;
import com.almostreliable.merequester.core.Registration;
Expand Down Expand Up @@ -35,6 +38,10 @@ InitScreens.<RequesterTerminalMenu, RequesterTerminalScreen<RequesterTerminalMen
}

private void registerColors(RegisterColorHandlersEvent.Item event) {
event.register(new StaticItemColor(AEColor.TRANSPARENT), Registration.REQUESTER_TERMINAL);
event.register(makeOpaque(new StaticItemColor(AEColor.TRANSPARENT)), Registration.REQUESTER_TERMINAL);
}

private static ItemColor makeOpaque(ItemColor itemColor) {
return (stack, tintIndex) -> FastColor.ARGB32.opaque(itemColor.getColor(stack, tintIndex));
}
}

0 comments on commit ea14e97

Please sign in to comment.