Merge pull request #184 from Zixxl/master
Factorization support 0.8.95+
This commit is contained in:
commit
922e17384c
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -14,12 +14,12 @@ public class FactorizationHelper {
|
|||
public static List slag = null;
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static List crystallizer = null;
|
||||
|
||||
|
||||
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) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue