Bugfix for AE Inscriber

- Fixed addRecipe for AE Inscriber always throws error about missing
parameters
This commit is contained in:
Zixxl 2015-07-22 09:51:11 +02:00
parent ffe8821976
commit acf41557a8

View file

@ -31,7 +31,7 @@ public class Inscriber {
@ZenMethod @ZenMethod
public static void addRecipe(IItemStack[] imprintable, IItemStack plateA, IItemStack plateB, IItemStack out, String type) { public static void addRecipe(IItemStack[] imprintable, IItemStack plateA, IItemStack plateB, IItemStack out, String type) {
if(imprintable == null || out == null || (!type.equals("Press") || !type.equals("Inscribe"))) { if(imprintable == null || out == null || (!type.equals("Press") && !type.equals("Inscribe"))) {
LogHelper.logError(String.format("Required parameters missing for %s Recipe.", Inscriber.name)); LogHelper.logError(String.format("Required parameters missing for %s Recipe.", Inscriber.name));
return; return;
} }