Merge pull request #918 from Dimach/unstable

Fix cleanroom bug (machines inside never receive cleanroom instance).
This commit is contained in:
Blood-Asp 2017-03-02 22:32:00 +01:00 committed by GitHub
commit 80943cf0ce

View file

@ -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){