mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-22 21:19:51 +00:00
Recipe tooltip fixes (#402)
* Unconditionally override Minecraft.currentScreen when drawing tooltips * Fix bad item lighting in recipe tooltips * Update buildscript * Fix NEI ignoring handler switching on click Handlers might call Minecraft#displayGuiScreen and overwrite Minecraft.currentScreen, but the height hack would unconditionally undo this again. * spotlessApply (#404) Co-authored-by: GitHub GTNH Actions <> * Attempt to fix CME when opening recipes immediately after load (#403) * Rename the internal private class HeightHack->CompatibilityHacks to better reflect the new usage. * Move trueGui assignment down. * Fix overlay button y offsets * Fix wrong recipe tooltip background rendering * Apply spotless --------- Co-authored-by: Wilhelm Schuster <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
5 files changed
+161
-38
No files matched your search
@@ -105,6 +105,7 @@ public class GuiCraftingRecipe extends GuiRecipe<ICraftingHandler> {
|
||||
|
||||
public static void registerRecipeHandler(ICraftingHandler handler) {
|
||||
final String handlerId = handler.getHandlerId();
|
||||
|
||||
if (craftinghandlers.stream().anyMatch(h -> h.getHandlerId().equals(handlerId))
|
||||
|| serialCraftingHandlers.stream().anyMatch(h -> h.getHandlerId().equals(handlerId)))
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user