aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/machines/multi/MTEIndustrialLaserEngraver.java
diff options
context:
space:
mode:
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.java19
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);
}
}