Configed Storage Blocks
Added config for removal of shapless recipes for storage blocks
This commit is contained in:
parent
2d8df8d145
commit
45a2057b69
3 changed files with 13 additions and 7 deletions
|
@ -220,6 +220,7 @@ public class GT_Mod implements IGT_Mod {
|
|||
gregtechproxy.mSkeletonsShootGTArrows = tMainConfig.get(aTextGeneral, "SkeletonsShootGTArrows", 16).getInt(16);
|
||||
gregtechproxy.mFlintChance = tMainConfig.get(aTextGeneral, "FlintAndSteelChance", 30).getInt(30);
|
||||
gregtechproxy.mItemDespawnTime = tMainConfig.get(aTextGeneral, "ItemDespawnTime", 6000).getInt(6000);
|
||||
gregtechproxy.mNerfStorageBlocks = tMainConfig.get(aTextGeneral,"NerfStorageBlocks",true).getBoolean(true);
|
||||
gregtechproxy.mDisableVanillaOres = tMainConfig.get(aTextGeneral, "DisableVanillaOres", true).getBoolean(true);
|
||||
gregtechproxy.mNerfDustCrafting = tMainConfig.get(aTextGeneral, "NerfDustCrafting", true).getBoolean(true);
|
||||
gregtechproxy.mIncreaseDungeonLoot = tMainConfig.get(aTextGeneral, "IncreaseDungeonLoot", true).getBoolean(true);
|
||||
|
|
|
@ -129,6 +129,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
public ArrayList<String> mBufferedPlayerActivity = new ArrayList();
|
||||
public boolean mHardcoreCables = false;
|
||||
public boolean mDisableVanillaOres = true;
|
||||
public boolean mNerfStorageBlocks = true;
|
||||
public boolean mNerfDustCrafting = true;
|
||||
public boolean mSortToTheEnd = true;
|
||||
public boolean mCraftingUnification = true;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package gregtech.loaders.oreprocessing;
|
||||
|
||||
import gregtech.GT_Mod;
|
||||
import gregtech.api.GregTech_API;
|
||||
import gregtech.api.enums.*;
|
||||
import gregtech.api.util.GT_ModHandler;
|
||||
|
@ -19,6 +20,8 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist
|
|||
ItemStack tStack2 = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L);
|
||||
ItemStack tStack3 = GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L);
|
||||
|
||||
if (GT_Mod.gregtechproxy.mNerfStorageBlocks) {
|
||||
|
||||
GT_ModHandler.removeRecipe(new ItemStack[]{GT_Utility.copyAmount(1L, new Object[]{aStack})});
|
||||
|
||||
if (tStack1 != null)
|
||||
|
@ -28,6 +31,7 @@ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegist
|
|||
if (tStack3 != null) {
|
||||
GT_ModHandler.removeRecipe(new ItemStack[]{tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3});
|
||||
}
|
||||
}
|
||||
if (aMaterial.mStandardMoltenFluid != null) {
|
||||
GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Block.get(0L, new Object[0]), aMaterial.getMolten(1296L), GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), 288, 8);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue