Added all fixes from Blood Asp we need. Just stay at Forestry 3.6.12.3
This commit is contained in:
parent
2cab6b8166
commit
55ed43f4ce
17 changed files with 39 additions and 23 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -73,3 +73,4 @@ local.properties
|
|||
eclipse/
|
||||
*.bat
|
||||
gradle/
|
||||
libs/libs.zip
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
minecraft.version=1.7.10
|
||||
forge.version=10.13.4.1492-1.7.10
|
||||
|
||||
gt.version=5.08.32.6
|
||||
gt.version=5.08.33.0
|
||||
|
||||
ae2.version=rv2-beta-33
|
||||
applecore.version=1.7.10-1.2.1+107.59407
|
||||
|
@ -16,7 +16,7 @@ enderio.cf=2219/296
|
|||
enderio.version=1.7.10-2.3.0.417_beta
|
||||
enderiocore.version=1.7.10-0.1.0.25_beta
|
||||
forestry.version=3.6.12.3
|
||||
ic2.version=2.2.780-experimental
|
||||
ic2.version=2.2.790-experimental
|
||||
nei.version=1.0.3.57
|
||||
railcraft.cf=2219/321
|
||||
railcraft.version=1.7.10-9.4.0.0
|
|
@ -824,6 +824,7 @@ public class GT_Mod
|
|||
GT_OreDictUnificator.setStack(tOutput);
|
||||
}
|
||||
}
|
||||
GregTech_API.mServerStarted = true;
|
||||
GT_Log.out.println("GT_Mod: ServerStarting-Phase finished!");
|
||||
GT_Log.ore.println("GT_Mod: ServerStarting-Phase finished!");
|
||||
for (Runnable tRunnable : GregTech_API.sAfterGTServerstart) {
|
||||
|
|
|
@ -187,6 +187,7 @@ public class GregTech_API {
|
|||
public static int mEUtoRF = 360;
|
||||
public static int mRFtoEU = 20;
|
||||
public static boolean mRFExplosions = true;
|
||||
public static boolean mServerStarted = false;
|
||||
/**
|
||||
* Getting assigned by the Mod loading
|
||||
*/
|
||||
|
|
|
@ -726,6 +726,7 @@ public enum Materials implements IColorModulationContainer, ISubTagContainer {
|
|||
Snow.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.NO_RECYCLING);
|
||||
Ice.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.NO_RECYCLING);
|
||||
Water.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.NO_RECYCLING);
|
||||
Silicon.add(SubTag.NO_RECYCLING);
|
||||
Sulfur.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.FLAMMABLE);
|
||||
Saltpeter.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.FLAMMABLE);
|
||||
Graphite.add(SubTag.NO_SMASHING, SubTag.NO_SMELTING, SubTag.FLAMMABLE, SubTag.NO_SMELTING);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package gregtech.api.metatileentity.implementations;
|
||||
|
||||
import cofh.api.energy.IEnergyReceiver;
|
||||
import gregtech.GT_Mod;
|
||||
import gregtech.api.GregTech_API;
|
||||
import gregtech.api.enums.Dyes;
|
||||
import gregtech.api.enums.Materials;
|
||||
|
@ -39,6 +40,7 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile
|
|||
public final boolean mInsulated, mCanShock;
|
||||
public long mTransferredAmperage = 0, mTransferredAmperageLast20 = 0, mTransferredVoltageLast20 = 0;
|
||||
public long mRestRF;
|
||||
public short mOverheat;
|
||||
|
||||
public GT_MetaPipeEntity_Cable(int aID, String aName, String aNameRegional, float aThickNess, Materials aMaterial, long aCableLossPerMeter, long aAmperage, long aVoltage, boolean aInsulated, boolean aCanShock) {
|
||||
super(aID, aName, aNameRegional, 0);
|
||||
|
@ -197,8 +199,9 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile
|
|||
mTransferredVoltageLast20 = Math.max(mTransferredVoltageLast20, aVoltage);
|
||||
mTransferredAmperageLast20 = Math.max(mTransferredAmperageLast20, mTransferredAmperage);
|
||||
if (aVoltage > mVoltage || mTransferredAmperage > mAmperage) {
|
||||
getBaseMetaTileEntity().setToFire();
|
||||
return aAmperage;
|
||||
if(mOverheat> GT_Mod.gregtechproxy.mWireHeatingTicks * 100){
|
||||
getBaseMetaTileEntity().setToFire();}else{mOverheat +=100;}
|
||||
return aAmperage;
|
||||
}
|
||||
return rUsedAmperes;
|
||||
}
|
||||
|
@ -208,6 +211,8 @@ public class GT_MetaPipeEntity_Cable extends MetaPipeEntity implements IMetaTile
|
|||
if (aBaseMetaTileEntity.isServerSide()) {
|
||||
mTransferredAmperage = 0;
|
||||
|
||||
if(mOverheat>0)mOverheat--;
|
||||
|
||||
if (aTick % 20 == 0) {
|
||||
mTransferredVoltageLast20 = 0;
|
||||
mTransferredAmperageLast20 = 0;
|
||||
|
|
|
@ -553,17 +553,13 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
|
|||
@Override
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) return false;
|
||||
if (mInventory[aIndex] != null) return true;
|
||||
switch (mInputSlotCount) {
|
||||
case 0:
|
||||
return false;
|
||||
case 1:
|
||||
return getFillableStack() == null ? !mRequiresFluidForFiltering && getRecipeList().containsInput(aStack) : null != getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), new ItemStack[]{aStack});
|
||||
case 2:
|
||||
return (!mRequiresFluidForFiltering || getFillableStack() != null) && (((getInputAt(0) != null && getInputAt(1) != null) || (getInputAt(0) == null && getInputAt(1) == null ? getRecipeList().containsInput(aStack) : null != getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), aIndex == getInputSlot() ? new ItemStack[]{aStack, getInputAt(1)} : new ItemStack[]{getInputAt(0), aStack}))));
|
||||
default:
|
||||
return getRecipeList().containsInput(aStack);
|
||||
}
|
||||
if (mInventory[aIndex] != null) return true;
|
||||
switch (mInputSlotCount) {
|
||||
case 0: return false;
|
||||
case 1: return getFillableStack() == null ? !mRequiresFluidForFiltering && getRecipeList().containsInput(aStack) : null!=getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[] {getFillableStack()}, getSpecialSlot(), new ItemStack[] {aStack});
|
||||
case 2: return (!mRequiresFluidForFiltering || getFillableStack() != null) && (((getInputAt(0)!=null&&getInputAt(1)!=null) || (getInputAt(0)==null&&getInputAt(1)==null?getRecipeList().containsInput(aStack):(getRecipeList().containsInput(aStack)&&null!=getRecipeList().findRecipe(getBaseMetaTileEntity(), mLastRecipe, true, V[mTier], new FluidStack[] {getFillableStack()}, getSpecialSlot(), aIndex == getInputSlot() ? new ItemStack[] {aStack, getInputAt(1)} : new ItemStack[] {getInputAt(0), aStack})))));
|
||||
default: return getRecipeList().containsInput(aStack);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -204,7 +204,7 @@ public abstract class GT_MetaTileEntity_Buffer extends GT_MetaTileEntity_TieredM
|
|||
@Override
|
||||
public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
if (aSide == getBaseMetaTileEntity().getBackFacing()) {
|
||||
mTargetStackSize = (byte) ((mTargetStackSize + 1) % 65);
|
||||
mTargetStackSize = (byte) ((mTargetStackSize + (aPlayer.isSneaking()? -1 : 1)) % 65);
|
||||
if (mTargetStackSize == 0) {
|
||||
GT_Utility.sendChatToPlayer(aPlayer, "Do not regulate Item Stack Size");
|
||||
} else {
|
||||
|
|
|
@ -22,7 +22,7 @@ public class GT_FluidStack extends FluidStack {
|
|||
public GT_FluidStack(Fluid aFluid, int aAmount) {
|
||||
super(aFluid, aAmount);
|
||||
mFluid = aFluid;
|
||||
sAllFluidStacks.add(this);
|
||||
if(!GregTech_API.mServerStarted){sAllFluidStacks.add(this);}
|
||||
}
|
||||
|
||||
public GT_FluidStack(FluidStack aFluid) {
|
||||
|
|
|
@ -109,7 +109,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
"unfinishedTank", "valvePart", "aquaRegia", "leatherSeal", "leatherSlimeSeal", "hambone", "slimeball", "clay", "enrichedUranium", "camoPaste",
|
||||
"antiBlock", "burntQuartz", "salmonRaw", "blockHopper", "blockEnderObsidian", "blockIcestone", "blockMagicWood", "blockEnderCore", "blockHeeEndium",
|
||||
"oreHeeEndPowder", "oreHeeStardust", "oreHeeIgneousRock", "oreHeeInstabilityOrb", "crystalPureFluix", "shardNether", "gemFluorite",
|
||||
"stickObsidian", "caveCrystal", "shardCrystal", "dyeCrystal"}));
|
||||
"stickObsidian", "caveCrystal", "shardCrystal", "dyeCrystal","shardFire","shardWater","shardAir","shardEarth","ingotRefinedIron","blockMarble"}));
|
||||
private final Collection<String> mInvalidNames = new HashSet(Arrays.asList(new String[]{"diamondShard", "redstoneRoot", "obsidianStick", "bloodstoneOre",
|
||||
"universalCable", "bronzeTube", "ironTube", "netherTube", "obbyTube", "infiniteBattery", "eliteBattery", "advancedBattery", "10kEUStore",
|
||||
"blueDye", "MonazitOre", "quartzCrystal", "whiteLuminiteCrystal", "darkStoneIngot", "invisiumIngot", "demoniteOrb", "enderGem", "starconiumGem",
|
||||
|
@ -151,6 +151,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
private World mUniverse = null;
|
||||
private boolean isFirstServerWorldTick = true;
|
||||
private boolean mOreDictActivated = false;
|
||||
public int mWireHeatingTicks = 4;
|
||||
public int[] mHarvestLevel= new int[1000];
|
||||
public int mGraniteHavestLevel=3;
|
||||
public int mMaxHarvestLevel=7;
|
||||
|
@ -198,6 +199,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
|
||||
GregTech_API.sPreloadStarted = true;
|
||||
this.mIgnoreTcon = GregTech_API.sOPStuff.get(ConfigCategories.general, "ignoreTConstruct", true);
|
||||
this.mWireHeatingTicks = GregTech_API.sOPStuff.get(ConfigCategories.general, "WireHeatingTicks", 4);
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(GT_Values.GT, this);
|
||||
for (FluidContainerRegistry.FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) {
|
||||
if ((tData.filledContainer.getItem() == Items.potionitem) && (tData.filledContainer.getItemDamage() == 0)) {
|
||||
|
|
|
@ -60,7 +60,8 @@ public class GT_Container_Filter
|
|||
if (aMouseclick == 0) {
|
||||
tSlot.putStack(null);
|
||||
} else if (tStack != null) {
|
||||
tStack.setItemDamage(32767);
|
||||
tStack = GT_Utility.copyAmountAndMetaData(tStack.stackSize, 32767, tStack);
|
||||
if(GT_Utility.isStackInvalid(tStack)){tStack=null;}
|
||||
}
|
||||
} else {
|
||||
tSlot.putStack(GT_Utility.copyAmount(1L, new Object[]{tStack}));
|
||||
|
|
|
@ -244,7 +244,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
|
|||
if (tierOverclock() == 2) {
|
||||
return mStartEnergy < 160000000 ? 2 : 1;
|
||||
}
|
||||
return mStartEnergy < 160000000 ? 4 : mStartEnergy > 320000000 ? 2 : 1;
|
||||
return mStartEnergy < 160000000 ? 4 : mStartEnergy < 320000000 ? 2 : 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -136,6 +136,7 @@ public class GT_MetaTileEntity_QuantumChest extends GT_MetaTileEntity_TieredMach
|
|||
}
|
||||
if (this.mItemStack != null) {
|
||||
this.mInventory[2] = this.mItemStack.copy();
|
||||
this.mInventory[2].stackSize = Math.min(mItemStack.getMaxStackSize(), this.mItemCount);
|
||||
} else {
|
||||
this.mInventory[2] = null;
|
||||
}
|
||||
|
@ -164,12 +165,12 @@ public class GT_MetaTileEntity_QuantumChest extends GT_MetaTileEntity_TieredMach
|
|||
|
||||
@Override
|
||||
public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
return true;
|
||||
return aIndex==1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
|
||||
return true;
|
||||
return aIndex==0&&(mInventory[0]==null||GT_Utility.areStacksEqual(this.mInventory[0], aStack));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -491,6 +491,8 @@ public class GT_Achievements {
|
|||
issueAchievement(player, "filterregulate");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.metaitem.01.32605")) {
|
||||
issueAchievement(player, "whatnow");
|
||||
} else if (stack.getUnlocalizedName().equals("gt.Thoriumcell")) {
|
||||
issueAchievement(player, "newfuel");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -504,6 +504,7 @@ public class GT_CraftingRecipeLoader
|
|||
GT_ModHandler.removeRecipeByOutput(GT_ModHandler.getIC2Item("splitterCableItem", 1L));
|
||||
GT_ModHandler.removeRecipeByOutput(GT_ModHandler.getIC2Item("electrolyzer", 1L));
|
||||
|
||||
|
||||
if (Loader.isModLoaded("NotEnoughItems")) {
|
||||
codechicken.nei.api.API.hideItem(GT_ModHandler.getIC2Item("copperCableItem", 1L));
|
||||
codechicken.nei.api.API.hideItem(GT_ModHandler.getIC2Item("insulatedCopperCableItem", 1L));
|
||||
|
|
|
@ -841,7 +841,7 @@ public class GT_MachineRecipeLoader
|
|||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uraninite, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Magnesium, 1L), GT_Values.NF, GT_Values.NF, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Uranium, 1L), 1000);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcium, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L), Materials.Oxygen.getGas(3000L), GT_Values.NF, GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 5L), 500);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L), GT_Values.NI, Materials.Hydrogen.getGas(4000L), Materials.Methane.getGas(5000L), GT_Values.NI, 3500);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), GT_Values.NI, Materials.Water.getFluid(2000L), Materials.SulfuricAcid.getFluid(3000L), GT_Values.NI, 1150);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), ItemList.Circuit_Integrated.getWithDamage(0L, 1L, new Object[0]), Materials.Water.getFluid(2000L), Materials.SulfuricAcid.getFluid(3000L), GT_Values.NI, 1150);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sulfur, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1L), Materials.Oxygen.getGas(4000L), Materials.SodiumPersulfate.getFluid(6000L), GT_Values.NI, 8000);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Nitrogen, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Carbon, 1L), Materials.Water.getFluid(2000L), Materials.Glyceryl.getFluid(4000L), ItemList.Cell_Empty.get(1L, new Object[0]), 2700);
|
||||
GT_Values.RA.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Fuel, 1L), GT_Values.NI, Materials.Glyceryl.getFluid(250L), Materials.NitroFuel.getFluid(1250L), ItemList.Cell_Empty.get(1L, new Object[0]), 250);
|
||||
|
@ -882,6 +882,8 @@ public class GT_MachineRecipeLoader
|
|||
GT_Values.RA.addBenderRecipe(ItemList.IC2_Item_Casing_Iron.get(2L, new Object[0]), GT_ModHandler.getIC2Item("fuelRod", 1L), 100, 8);
|
||||
GT_Values.RA.addBenderRecipe(ItemList.IC2_Item_Casing_Tin.get(1L, new Object[0]), ItemList.IC2_Food_Can_Empty.get(1L, new Object[0]), 100, 8);
|
||||
|
||||
GT_Values.RA.addPulveriserRecipe(GT_OreDictUnificator.get(OrePrefixes.block, Materials.Marble, 1L), new ItemStack[]{GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Marble, 1L)}, null, 160, 4);
|
||||
|
||||
GT_Values.RA.addVacuumFreezerRecipe(GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 32767), GT_ModHandler.getIC2Item("reactorCoolantSimple", 1L, 1), 100);
|
||||
GT_Values.RA.addVacuumFreezerRecipe(GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 32767), GT_ModHandler.getIC2Item("reactorCoolantTriple", 1L, 1), 300);
|
||||
GT_Values.RA.addVacuumFreezerRecipe(GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 32767), GT_ModHandler.getIC2Item("reactorCoolantSix", 1L, 1), 600);
|
||||
|
|
|
@ -33,6 +33,8 @@ public class GT_RecyclerBlacklistLoader
|
|||
GT_ModHandler.addToRecyclerBlackList(tStack);
|
||||
tStack = GT_ModHandler.getRecipeOutput(new ItemStack[]{tStack, tStack, tStack, tStack, tStack, tStack, tStack, tStack, tStack});
|
||||
}
|
||||
GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.gravel, 1, 32767));
|
||||
GT_ModHandler.addToRecyclerBlackList(new ItemStack(Items.flint, 1, 32767));
|
||||
GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.cobblestone_wall, 1, 32767));
|
||||
GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.sandstone_stairs, 1, 32767));
|
||||
GT_ModHandler.addToRecyclerBlackList(new ItemStack(Blocks.stone_stairs, 1, 32767));
|
||||
|
|
Loading…
Reference in a new issue