commit
ad8496d0a2
2 changed files with 8 additions and 8 deletions
|
@ -732,23 +732,23 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
|
|||
if (tMap == null) return DID_NOT_FIND_RECIPE;
|
||||
GT_Recipe tRecipe = tMap.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), getAllInputs());
|
||||
if (tRecipe == null) return DID_NOT_FIND_RECIPE;
|
||||
if (GT_Mod.gregtechproxy.mLowGravProcessing && tRecipe.mSpecialValue == -100 && getBaseMetaTileEntity().getWorld().provider.dimensionId == -27)return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
if (GT_Mod.gregtechproxy.mLowGravProcessing && tRecipe.mSpecialValue == -100 && getBaseMetaTileEntity().getWorld().provider.dimensionId == -27) return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
if (tRecipe.mCanBeBuffered) mLastRecipe = tRecipe;
|
||||
if (!canOutput(tRecipe)) {
|
||||
mOutputBlocked++;
|
||||
return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
}
|
||||
if (tRecipe.mSpecialValue == -200 && (mCleanroom == null || mCleanroom.mEfficiency == 0))
|
||||
return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
if (!tRecipe.isRecipeInputEqual(true, new FluidStack[]{getFillableStack()}, getAllInputs()))
|
||||
return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
|
||||
for (int i = 0; i < mOutputItems.length; i++)
|
||||
if (getBaseMetaTileEntity().getRandomNumber(10000) < tRecipe.getOutputChance(i))
|
||||
mOutputItems[i] = tRecipe.getOutput(i);
|
||||
if(tRecipe.mSpecialValue == -200){
|
||||
if(mCleanroom==null)return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS;
|
||||
if (mOutputItems[0]==null || getBaseMetaTileEntity().getRandomNumber(10000) > mCleanroom.mEfficiency)
|
||||
mOutputItems[0] = null;
|
||||
}
|
||||
if (tRecipe.mSpecialValue == -200)
|
||||
for (int i = 0; i < mOutputItems.length; i++)
|
||||
if (mOutputItems[i] != null && getBaseMetaTileEntity().getRandomNumber(10000) > mCleanroom.mEfficiency)
|
||||
mOutputItems[i] = null;
|
||||
mOutputFluid = tRecipe.getFluidOutput(0);
|
||||
calculateOverclockedNess(tRecipe);
|
||||
return FOUND_AND_SUCCESSFULLY_USED_RECIPE;
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue