diff options
author | Mary <33456283+FourIsTheNumber@users.noreply.github.com> | 2024-11-03 13:00:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-03 18:00:30 +0000 |
commit | 3f84e9e8d1ec230cb7f7accc9116246a53797080 (patch) | |
tree | ecd2fb116625c3f15f87abfcc79a1b0bedb8c2f5 /src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java | |
parent | 3376516a2856a854584bd72de4428c539e4d4b34 (diff) | |
download | GT5-Unofficial-3f84e9e8d1ec230cb7f7accc9116246a53797080.tar.gz GT5-Unofficial-3f84e9e8d1ec230cb7f7accc9116246a53797080.tar.bz2 GT5-Unofficial-3f84e9e8d1ec230cb7f7accc9116246a53797080.zip |
Fix structure checks and tooltip issues (#3446)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java index 49fdd29257..50a919ce50 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java @@ -301,6 +301,7 @@ public class MTEIndustrialLaserEngraver extends MTEExtendedPowerMultiBlockBase<M @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { mCasingAmount = 0; + glassTier = 0; IGregTechTileEntity base = getBaseMetaTileEntity(); if (!checkPiece(STRUCTURE_PIECE_MAIN, 2, 4, 0)) return false; @@ -331,16 +332,16 @@ public class MTEIndustrialLaserEngraver extends MTEExtendedPowerMultiBlockBase<M @NotNull @Override protected CheckRecipeResult onRecipeStart(@NotNull GTRecipe recipe) { - Colors c = Colors.Red; - for (int i = 0; i < recipe.mInputs.length; i++) { - String uid = getUniqueIdentifier(recipe.mInputs[i]); - if (lensColors.containsKey(uid)) { - c = lensColors.get(uid); + if (!stopAllRendering) { + Colors c = Colors.Red; + for (int i = 0; i < recipe.mInputs.length; i++) { + String uid = getUniqueIdentifier(recipe.mInputs[i]); + if (lensColors.containsKey(uid)) { + c = lensColors.get(uid); + } } - } - if (renderer != null) { - renderer.setColors(c.r, c.g, c.b); - if (!stopAllRendering) { + if (renderer != null) { + renderer.setColors(c.r, c.g, c.b); renderer.setShouldRender(true); } } |