This closes #17 and closes #58, I tested and it worked using the script given

Also changes like all packages
inb4 "jared changes a package name in ModTweaker2 breaking compatability
with everything" drama tweet.
This commit is contained in:
jaredlll08 committed 2015-02-20 23:57:32 +02:00
1 parent 4fd2551072
commit ec562b62ea
187 files changed
+977 -991

No files matched your search

@@ -0,0 +1,15 @@
package modtweaker2.helpers;
import modtweaker2.mods.botania.Botania;
import modtweaker2.util.TweakerPlugin;
import net.minecraft.item.ItemStack;
public class StackHelper {
//Stack is the stack that is part of a recipe, stack2 is the one input trying to match
public static boolean areEqual(ItemStack stack, ItemStack stack2) {
if (stack == null || stack2 == null) return false;
else if (TweakerPlugin.isLoaded("Botania") && Botania.isSubtile(stack) && Botania.isSubtile(stack2)) {
return Botania.subtileMatches(stack, stack2);
} else return stack.isItemEqual(stack2);
}
}