Fix for cells in CT scripts. Some work on #1590
This commit is contained in:
parent
c41b889160
commit
2d3c074767
2 changed files with 6 additions and 3 deletions
|
@ -101,7 +101,8 @@ public class CTFusionReactor {
|
|||
@Override
|
||||
public void apply() {
|
||||
for (FusionReactorRecipe recipeType : FusionReactorRecipeHelper.reactorRecipes) {
|
||||
if (ItemUtils.isItemEqual(recipeType.getOutput(), output, true, false)) {
|
||||
boolean matchNBT = output.hasTagCompound();
|
||||
if (ItemUtils.isItemEqual(recipeType.getOutput(), output, true, matchNBT)) {
|
||||
removedRecipes.add(recipeType);
|
||||
FusionReactorRecipeHelper.reactorRecipes.remove(recipeType);
|
||||
break;
|
||||
|
|
|
@ -75,7 +75,8 @@ public class CTGeneric {
|
|||
public void apply() {
|
||||
for (IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(name)) {
|
||||
for (ItemStack stack : recipeType.getOutputs()) {
|
||||
if (ItemUtils.isItemEqual(stack, output, true, false)) {
|
||||
boolean matchNBT = output.hasTagCompound();
|
||||
if (ItemUtils.isItemEqual(stack, output, true, matchNBT)) {
|
||||
removedRecipes.add((BaseRecipe) recipeType);
|
||||
RecipeHandler.recipeList.remove(recipeType);
|
||||
break;
|
||||
|
@ -106,7 +107,8 @@ public class CTGeneric {
|
|||
for (Object recipeInput : recipeType.getInputs()) {
|
||||
ItemStack ingredientStack = CraftTweakerMC.getItemStack(ingredient);
|
||||
if (!ingredientStack.isEmpty()) {
|
||||
if (ItemUtils.isInputEqual(recipeInput, ingredientStack, true, false, true)) {
|
||||
boolean matchNBT = ingredientStack.hasTagCompound();
|
||||
if (ItemUtils.isInputEqual(recipeInput, ingredientStack, true, matchNBT, true)) {
|
||||
removedRecipes.add((BaseRecipe) recipeType);
|
||||
RecipeHandler.recipeList.remove(recipeType);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue