From ae5b71c8ef69d6d9d5d272b9f550d67b1801397e Mon Sep 17 00:00:00 2001 From: PouffyDev <99536749+pouffy@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:17:53 +0100 Subject: [PATCH] Centrifuge JEI Fix - Vat JEI now properly displays the sprite for the Centrifuge instead of showing a vat with no machines --- .../com/drmangotea/tfmg/recipes/jei/ChemicalVatCategory.java | 4 ++++ .../java/com/drmangotea/tfmg/registry/TFMGGuiTextures.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/drmangotea/tfmg/recipes/jei/ChemicalVatCategory.java b/src/main/java/com/drmangotea/tfmg/recipes/jei/ChemicalVatCategory.java index 6ef8ea72..488230f8 100644 --- a/src/main/java/com/drmangotea/tfmg/recipes/jei/ChemicalVatCategory.java +++ b/src/main/java/com/drmangotea/tfmg/recipes/jei/ChemicalVatCategory.java @@ -148,6 +148,10 @@ public class ChemicalVatCategory extends CreateRecipeCategory TFMGGuiTextures.VAT_MACHINE.render(graphics, 55 - 12, 0); TFMGGuiTextures.MIXER.render(graphics, 55 - 19, 32); } + if (machines.contains("tfmg:centrifuge")) { + TFMGGuiTextures.VAT_MACHINE.render(graphics, 55 - 12, 0); + TFMGGuiTextures.CENTRIFUGE.render(graphics, 55 - 12, 32); + } if (machines.contains("tfmg:electrode")) { TFMGGuiTextures.VAT_MACHINE.render(graphics, 55 - 12 - 32, 0); TFMGGuiTextures.VAT_MACHINE.render(graphics, 55 - 12 + 32, 0); diff --git a/src/main/java/com/drmangotea/tfmg/registry/TFMGGuiTextures.java b/src/main/java/com/drmangotea/tfmg/registry/TFMGGuiTextures.java index 7fe6fd66..03c23465 100644 --- a/src/main/java/com/drmangotea/tfmg/registry/TFMGGuiTextures.java +++ b/src/main/java/com/drmangotea/tfmg/registry/TFMGGuiTextures.java @@ -26,7 +26,8 @@ public enum TFMGGuiTextures implements ScreenElement { VAT("chemical_vat", 0, 0, 110, 84), VAT_MACHINE("chemical_vat", 112, 0, 24, 24), SLOT("chemical_vat", 112, 24, 20, 20), - MIXER("chemical_vat", 136, 0, 38, 37), + MIXER("chemical_vat", 136, 0, 38, 29), + CENTRIFUGE("chemical_vat", 143, 30, 24, 29), ELECTRODE("chemical_vat", 189, 0, 8, 29), GRAPHITE_ELECTRODE("chemical_vat", 176, 0, 8, 29), FIREPROOF_BRICK_OVERLAY("chemical_vat", 0, 84, 96, 72),