Remove hard dep on unnecessarily new forge version

This commit is contained in:
tterrag1098 2015-05-13 17:18:21 -04:00
parent 0b04665055
commit b70c0e015f
19 changed files with 30 additions and 31 deletions

View file

@ -55,7 +55,7 @@ sourceCompatibility = '1.7'
targetCompatibility = '1.7' targetCompatibility = '1.7'
minecraft { minecraft {
version = config.minecraft_version + "-" + config.forge_version + "-" + config.forge_mc_version version = config.minecraft_version + "-" + config.forge_version
} }
processResources processResources

View file

@ -1,6 +1,5 @@
minecraft_version=1.7.10 minecraft_version=1.7.10
forge_mc_version=1710ls forge_version=10.13.2.1291
forge_version=10.13.3.1395
FMP_version=1.1.2.331 FMP_version=1.1.2.331
CCLIB_version=1.1.3.136 CCLIB_version=1.1.3.136
NEI_version=1.0.4.101 NEI_version=1.0.4.101

View file

@ -87,7 +87,7 @@ public final class StackKey {
} }
} }
if (fluidStack != null) { if (fluidStack != null) {
if (fluidStack.getFluidID() != k.fluidStack.getFluidID() || if (fluidStack.fluidID != k.fluidStack.fluidID ||
fluidStack.amount != k.fluidStack.amount || fluidStack.amount != k.fluidStack.amount ||
!objectsEqual(fluidStack.tag, k.fluidStack.tag)) { !objectsEqual(fluidStack.tag, k.fluidStack.tag)) {
return false; return false;
@ -106,7 +106,7 @@ public final class StackKey {
} }
result = 31 * result + 7; result = 31 * result + 7;
if (fluidStack != null) { if (fluidStack != null) {
result = 31 * result + fluidStack.getFluidID(); result = 31 * result + fluidStack.fluidID;
result = 31 * result + fluidStack.amount; result = 31 * result + fluidStack.amount;
result = 31 * result + objectHashCode(fluidStack.tag); result = 31 * result + objectHashCode(fluidStack.tag);
} }

View file

@ -165,7 +165,7 @@ public class FluidNetwork extends DynamicNetwork<IFluidHandler, FluidNetwork>
if(acceptor != null && fluidToSend != null) if(acceptor != null && fluidToSend != null)
{ {
fluidSent += acceptor.fill(side, new FluidStack(fluidToSend.getFluidID(), currentSending), doTransfer); fluidSent += acceptor.fill(side, new FluidStack(fluidToSend.fluidID, currentSending), doTransfer);
} }
if(fluidSent > prev) if(fluidSent > prev)

View file

@ -31,12 +31,12 @@ public abstract class BoilerTank implements IFluidTank
{ {
if(steamBoiler.structure != null && !steamBoiler.getWorldObj().isRemote) if(steamBoiler.structure != null && !steamBoiler.getWorldObj().isRemote)
{ {
if(resource == null || resource.getFluidID() <= 0) if(resource == null || resource.fluidID <= 0)
{ {
return 0; return 0;
} }
if(getFluid() == null || getFluid().getFluidID() <= 0) if(getFluid() == null || getFluid().fluidID <= 0)
{ {
if(resource.amount <= getCapacity()) if(resource.amount <= getCapacity())
{ {
@ -138,7 +138,7 @@ public abstract class BoilerTank implements IFluidTank
{ {
if(steamBoiler.structure != null && !steamBoiler.getWorldObj().isRemote) if(steamBoiler.structure != null && !steamBoiler.getWorldObj().isRemote)
{ {
if(getFluid() == null || getFluid().getFluidID() <= 0) if(getFluid() == null || getFluid().fluidID <= 0)
{ {
return null; return null;
} }
@ -160,7 +160,7 @@ public abstract class BoilerTank implements IFluidTank
getFluid().amount -= used; getFluid().amount -= used;
} }
FluidStack drained = new FluidStack(getFluid().getFluidID(), used); FluidStack drained = new FluidStack(getFluid().fluidID, used);
if(getFluid().amount <= 0) if(getFluid().amount <= 0)
{ {

View file

@ -34,7 +34,7 @@ public class DynamicFluidTank implements IFluidTank
{ {
if(dynamicTank.structure != null && !dynamicTank.getWorldObj().isRemote) if(dynamicTank.structure != null && !dynamicTank.getWorldObj().isRemote)
{ {
if(resource == null || resource.getFluidID() <= 0) if(resource == null || resource.fluidID <= 0)
{ {
return 0; return 0;
} }
@ -44,7 +44,7 @@ public class DynamicFluidTank implements IFluidTank
return 0; return 0;
} }
if(dynamicTank.structure.fluidStored == null || dynamicTank.structure.fluidStored.getFluidID() <= 0) if(dynamicTank.structure.fluidStored == null || dynamicTank.structure.fluidStored.fluidID <= 0)
{ {
if(resource.amount <= getCapacity()) if(resource.amount <= getCapacity())
{ {
@ -140,7 +140,7 @@ public class DynamicFluidTank implements IFluidTank
{ {
if(dynamicTank.structure != null && !dynamicTank.getWorldObj().isRemote) if(dynamicTank.structure != null && !dynamicTank.getWorldObj().isRemote)
{ {
if(dynamicTank.structure.fluidStored == null || dynamicTank.structure.fluidStored.getFluidID() <= 0) if(dynamicTank.structure.fluidStored == null || dynamicTank.structure.fluidStored.fluidID <= 0)
{ {
return null; return null;
} }
@ -162,7 +162,7 @@ public class DynamicFluidTank implements IFluidTank
dynamicTank.structure.fluidStored.amount -= used; dynamicTank.structure.fluidStored.amount -= used;
} }
FluidStack drained = new FluidStack(dynamicTank.structure.fluidStored.getFluidID(), used); FluidStack drained = new FluidStack(dynamicTank.structure.fluidStored.fluidID, used);
if(dynamicTank.structure.fluidStored.amount <= 0) if(dynamicTank.structure.fluidStored.amount <= 0)
{ {

View file

@ -669,7 +669,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
itemStack.setTagCompound(new NBTTagCompound()); itemStack.setTagCompound(new NBTTagCompound());
} }
if(fluidStack == null || fluidStack.amount == 0 || fluidStack.getFluidID() == 0) if(fluidStack == null || fluidStack.amount == 0 || fluidStack.fluidID == 0)
{ {
itemStack.stackTagCompound.removeTag("fluidTank"); itemStack.stackTagCompound.removeTag("fluidTank");
} }

View file

@ -130,7 +130,7 @@ public class ItemGaugeDropper extends ItemMekanism implements IGasItem, IFluidCo
container.setTagCompound(new NBTTagCompound()); container.setTagCompound(new NBTTagCompound());
} }
if(stack == null || stack.amount == 0 || stack.getFluidID() == 0) if(stack == null || stack.amount == 0 || stack.fluidID == 0)
{ {
container.stackTagCompound.removeTag("fluidStack"); container.stackTagCompound.removeTag("fluidStack");
} }

View file

@ -47,7 +47,7 @@ public class FluidInput extends MachineInput<FluidInput>
@Override @Override
public int hashIngredients() public int hashIngredients()
{ {
return ingredient.fluid != null ? ingredient.fluid.hashCode() : 0; return ingredient.getFluid() != null ? ingredient.getFluid().hashCode() : 0;
} }
@Override @Override

View file

@ -147,7 +147,7 @@ public class PressurizedInput extends MachineInput<PressurizedInput>
@Override @Override
public int hashIngredients() public int hashIngredients()
{ {
return StackUtils.hashItemStack(theSolid) << 16 | (theFluid.fluid != null ? theFluid.fluid.hashCode() : 0) << 8 | theGas.hashCode(); return StackUtils.hashItemStack(theSolid) << 16 | (theFluid.getFluid() != null ? theFluid.getFluid().hashCode() : 0) << 8 | theGas.hashCode();
} }
@Override @Override

View file

@ -312,7 +312,7 @@ public class TileEntityBoiler extends TileEntityMultiblock<SynchronizedBoilerDat
if(structure != null && structure.waterStored != null) if(structure != null && structure.waterStored != null)
{ {
data.add(1); data.add(1);
data.add(structure.waterStored.getFluidID()); data.add(structure.waterStored.fluidID);
data.add(structure.waterStored.amount); data.add(structure.waterStored.amount);
} }
else { else {
@ -322,7 +322,7 @@ public class TileEntityBoiler extends TileEntityMultiblock<SynchronizedBoilerDat
if(structure != null && structure.steamStored != null) if(structure != null && structure.steamStored != null)
{ {
data.add(1); data.add(1);
data.add(structure.steamStored.getFluidID()); data.add(structure.steamStored.fluidID);
data.add(structure.steamStored.amount); data.add(structure.steamStored.amount);
} }
else { else {

View file

@ -298,7 +298,7 @@ public class TileEntityDynamicTank extends TileEntityMultiblock<SynchronizedTank
if(structure.fluidStored != null) if(structure.fluidStored != null)
{ {
data.add(1); data.add(1);
data.add(structure.fluidStored.getFluidID()); data.add(structure.fluidStored.fluidID);
data.add(structure.fluidStored.amount); data.add(structure.fluidStored.amount);
} }
else { else {

View file

@ -282,7 +282,7 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I
if(fluidTank.getFluid() != null) if(fluidTank.getFluid() != null)
{ {
data.add(1); data.add(1);
data.add(fluidTank.getFluid().getFluidID()); data.add(fluidTank.getFluid().fluidID);
data.add(fluidTank.getFluid().amount); data.add(fluidTank.getFluid().amount);
} }
else { else {

View file

@ -285,7 +285,7 @@ public class TileEntityFluidicPlenisher extends TileEntityElectricBlock implemen
if(fluidTank.getFluid() != null) if(fluidTank.getFluid() != null)
{ {
data.add(1); data.add(1);
data.add(fluidTank.getFluid().getFluidID()); data.add(fluidTank.getFluid().fluidID);
data.add(fluidTank.getFluid().amount); data.add(fluidTank.getFluid().amount);
} }
else { else {

View file

@ -434,7 +434,7 @@ public class TileEntityPortableTank extends TileEntityContainerBlock implements
if(fluidTank.getFluid() != null) if(fluidTank.getFluid() != null)
{ {
data.add(1); data.add(1);
data.add(fluidTank.getFluid().getFluidID()); data.add(fluidTank.getFluid().fluidID);
data.add(fluidTank.getFluid().amount); data.add(fluidTank.getFluid().amount);
} }
else { else {

View file

@ -414,7 +414,7 @@ public class TileEntityRotaryCondensentrator extends TileEntityElectricBlock imp
if(fluidTank.getFluid() != null) if(fluidTank.getFluid() != null)
{ {
data.add(true); data.add(true);
data.add(fluidTank.getFluid().getFluidID()); data.add(fluidTank.getFluid().fluidID);
data.add(fluidTank.getFluid().amount); data.add(fluidTank.getFluid().amount);
} }
else { else {

View file

@ -711,7 +711,7 @@ public class TileEntitySolarEvaporationController extends TileEntitySolarEvapora
if(inputTank.getFluid() != null) if(inputTank.getFluid() != null)
{ {
data.add(true); data.add(true);
data.add(inputTank.getFluid().getFluidID()); data.add(inputTank.getFluid().fluidID);
data.add(inputTank.getFluid().amount); data.add(inputTank.getFluid().amount);
} }
else { else {
@ -721,7 +721,7 @@ public class TileEntitySolarEvaporationController extends TileEntitySolarEvapora
if(outputTank.getFluid() != null) if(outputTank.getFluid() != null)
{ {
data.add(true); data.add(true);
data.add(outputTank.getFluid().getFluidID()); data.add(outputTank.getFluid().fluidID);
data.add(outputTank.getFluid().amount); data.add(outputTank.getFluid().amount);
} }
else { else {

View file

@ -271,7 +271,7 @@ public class ItemBlockGenerator extends ItemBlock implements IEnergizedItem, ISp
@Override @Override
public void setFluidStack(FluidStack fluidStack, Object... data) public void setFluidStack(FluidStack fluidStack, Object... data)
{ {
if(fluidStack == null || fluidStack.amount == 0 || fluidStack.getFluidID() == 0) if(fluidStack == null || fluidStack.amount == 0 || fluidStack.fluidID == 0)
{ {
return; return;
} }

View file

@ -76,7 +76,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
} }
else if(fluid != null) else if(fluid != null)
{ {
if(fluid != null && fluid.getFluidID() == FluidRegistry.LAVA.getID()) if(fluid != null && fluid.fluidID == FluidRegistry.LAVA.getID())
{ {
if(lavaTank.getFluid() == null || lavaTank.getFluid().amount+fluid.amount <= lavaTank.getCapacity()) if(lavaTank.getFluid() == null || lavaTank.getFluid().amount+fluid.amount <= lavaTank.getCapacity())
{ {
@ -152,7 +152,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
{ {
if(slotID == 0) if(slotID == 0)
{ {
return getFuel(itemstack) > 0 || (FluidContainerRegistry.getFluidForFilledItem(itemstack) != null && FluidContainerRegistry.getFluidForFilledItem(itemstack).getFluidID() == FluidRegistry.LAVA.getID()); return getFuel(itemstack) > 0 || (FluidContainerRegistry.getFluidForFilledItem(itemstack) != null && FluidContainerRegistry.getFluidForFilledItem(itemstack).fluidID == FluidRegistry.LAVA.getID());
} }
else if(slotID == 1) else if(slotID == 1)
{ {
@ -329,7 +329,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
@Override @Override
public int fill(ForgeDirection from, FluidStack resource, boolean doFill) public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
{ {
if(resource.getFluidID() == FluidRegistry.LAVA.getID() && from != ForgeDirection.getOrientation(facing)) if(resource.fluidID == FluidRegistry.LAVA.getID() && from != ForgeDirection.getOrientation(facing))
{ {
return lavaTank.fill(resource, doFill); return lavaTank.fill(resource, doFill);
} }