From 4ff885458b99b882181330f74590a9f698eba419 Mon Sep 17 00:00:00 2001 From: Dimach Date: Thu, 2 Mar 2017 20:00:05 +0200 Subject: [PATCH] Fix cleanroom bug (machines inside never receive cleanroom instance). --- .../machines/multi/GT_MetaTileEntity_Cleanroom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java index 25add840..9f677652 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java @@ -116,7 +116,7 @@ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack a } if(mMaintenanceHatches.size()!=1||mEnergyHatches.size()!=1||mDoorCount!=2||mHullCount>10){return false;} for(int dX=-x+1;dX<=x-1;dX++){ - for(int dZ=z+1;dZ<=z-1;dZ++){ + for(int dZ=-z+1;dZ<=z-1;dZ++){ for(int dY=-1;dY>=y+1;dY--){ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(dX, dY, dZ); if(tTileEntity!=null){