Jenkins build and updates t mariculture

This commit is contained in:
jaredlll08 2015-01-20 01:10:42 +02:00
parent f813a76fb9
commit 5573dda315
5 changed files with 10 additions and 16 deletions

View file

@ -17,7 +17,7 @@ buildscript {
apply plugin: 'forge'
version = "${mod_version}"
version = "0.7.b${System.getenv().BUILD_NUMBER}"
group= "modtweaker" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "ModTweaker 2"

Binary file not shown.

View file

@ -1,25 +1,19 @@
package modtweaker.mods.forestry.handlers;
import static modtweaker.helpers.InputHelper.toStack;
import static modtweaker.helpers.InputHelper.toFluid;
import static modtweaker.helpers.InputHelper.getFluid;
import static modtweaker.helpers.InputHelper.toFluid;
import static modtweaker.helpers.InputHelper.toStack;
import java.util.List;
import minetweaker.MineTweakerAPI;
import minetweaker.api.item.IItemStack;
import minetweaker.api.liquid.ILiquidStack;
import modtweaker.helpers.InputHelper;
import modtweaker.util.BaseListAddition;
import modtweaker.util.BaseListRemoval;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
import net.minecraft.item.ItemStack;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenMethod;
import forestry.Forestry;
import forestry.api.core.ForestryAPI;
import forestry.api.recipes.RecipeManagers;
import forestry.core.utils.LiquidHelper;
import forestry.factory.gadgets.MachineFermenter;
import forestry.factory.gadgets.MachineFermenter.Recipe;
import forestry.factory.gadgets.MachineFermenter.RecipeManager;
@ -46,13 +40,13 @@ public class Fermenter {
}
@ZenMethod
public static void removeRecipe(ILiquidStack output) {
MineTweakerAPI.apply(new Remove(MachineFermenter.RecipeManager.recipes, toFluid(output)));
public static void removeRecipe(IItemStack input) {
MineTweakerAPI.apply(new Remove(MachineFermenter.RecipeManager.recipes, toStack(input)));
}
private static class Remove extends BaseListRemoval {
public Remove(List list, FluidStack stack) {
public Remove(List list, ItemStack stack) {
super(list, stack);
}
@ -60,7 +54,7 @@ public class Fermenter {
@Override
public void apply() {
for (Recipe r : RecipeManager.recipes) {
if (r.output != null && r.output.isFluidEqual(fluid)) {
if (r.resource != null && r.resource.isItemEqual(stack)) {
recipe = r;
break;
}

View file

@ -181,10 +181,10 @@ public class Smeltery {
TConstructHelper.renderIndex.remove(in);
}
//Readds the Melting recipe
//Reads the Melting recipe
@Override
public void undo() {
tconstruct.library.crafting.Smeltery.instance.addMelting(input, Block.getBlockFromItem(renderer.getItem()), renderer.getItemDamage(), temp, fluid);
// tconstruct.library.crafting.Smeltery.instance.addMelting(input, Block.getBlockFromItem(renderer.getItem()), renderer.getItemDamage(), temp, fluid);
}
@Override