Merge pull request #184 from Zixxl/master

Factorization support 0.8.95+
This commit is contained in:
Zixxl 2015-07-14 15:31:39 +02:00
commit 922e17384c
3 changed files with 6 additions and 6 deletions

View file

@ -8,6 +8,7 @@ import minetweaker.MineTweakerAPI;
import minetweaker.MineTweakerImplementationAPI;
import minetweaker.api.player.IPlayer;
import minetweaker.mc1710.data.NBTConverter;
import modtweaker2.utils.TweakerPlugin;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.IRecipe;
@ -60,7 +61,7 @@ public class LogHelper {
return getStackDescription((ItemStack)object);
} else if (object instanceof FluidStack) {
return getStackDescription((FluidStack)object);
} else if (object instanceof GasStack) {
} else if (TweakerPlugin.isLoaded("Mekanism") && object instanceof GasStack) {
return getStackDescription((GasStack)object);
} else if (object instanceof String) {
// Check if string specifies an oredict entry

View file

@ -1,7 +1,6 @@
package modtweaker2.helpers;
import static modtweaker2.helpers.InputHelper.toStack;
import mekanism.api.gas.GasStack;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemStack;
import minetweaker.api.item.IngredientAny;

View file

@ -17,9 +17,9 @@ public class FactorizationHelper {
static {
try {
lacerator = getStaticObject(Class.forName("factorization.oreprocessing.TileEntityGrinder"), "recipes");
slag = getStaticObject(Class.forName("factorization.oreprocessing.TileEntitySlagFurnace$SlagRecipes"), "smeltingResults");
crystallizer = getStaticObject(Class.forName("factorization.oreprocessing.TileEntityCrystallizer"), "recipes");
lacerator = getStaticObject(Class.forName("factorization.oreprocessing.TileEntityGrinder"), "recipes");
slag = ReflectionHelper.getObject(getStaticObject(Class.forName("factorization.oreprocessing.TileEntitySlagFurnace"), "recipes"), "list");
crystallizer = ReflectionHelper.getObject(getStaticObject(Class.forName("factorization.oreprocessing.TileEntityCrystallizer"), "recipes"), "list");
} catch (Exception e) {}
}