added a few checks for imbuing
This commit is contained in:
parent
b2a289fd67
commit
8a702e8cc4
2 changed files with 6 additions and 1 deletions
|
@ -62,6 +62,12 @@ public class ImbuingStation {
|
||||||
|
|
||||||
for (ImbuingRecipe recipe : this.recipes) {
|
for (ImbuingRecipe recipe : this.recipes) {
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
|
for (ImbuingRecipe r : ImbuingRecipeHandler.imbuingRecipes) {
|
||||||
|
System.out.println(recipe.getIngredients() + " : " +r.getIngredients());
|
||||||
|
System.out.println(recipe.toImbue() + " : " +r.toImbue());
|
||||||
|
System.out.println(recipe.getResult() + " : " +r.getResult());
|
||||||
|
|
||||||
|
}
|
||||||
if (ImbuingRecipeHandler.imbuingRecipes.remove(recipe)) {
|
if (ImbuingRecipeHandler.imbuingRecipes.remove(recipe)) {
|
||||||
successful.add(recipe);
|
successful.add(recipe);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -23,7 +23,6 @@ public abstract class BaseListRemoval<T> extends BaseListModification<T> {
|
||||||
if (recipes.isEmpty()) {
|
if (recipes.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (T recipe : this.recipes) {
|
for (T recipe : this.recipes) {
|
||||||
if (recipe != null) {
|
if (recipe != null) {
|
||||||
if (this.list.remove(recipe)) {
|
if (this.list.remove(recipe)) {
|
||||||
|
|
Loading…
Reference in a new issue