@@ -19,7 +19,7 @@
|
||||
|
||||
public ContainerSmithing(int i, PlayerInventory playerinventory) {
|
||||
this(i, playerinventory, ContainerAccess.NULL);
|
||||
@@ -89,7 +94,7 @@
|
||||
@@ -96,7 +101,7 @@
|
||||
List<SmithingRecipe> list = this.level.getRecipeManager().getRecipesFor(Recipes.SMITHING, this.inputSlots, this.level);
|
||||
|
||||
if (list.isEmpty()) {
|
||||
@@ -28,7 +28,7 @@
|
||||
} else {
|
||||
SmithingRecipe smithingrecipe = (SmithingRecipe) list.get(0);
|
||||
ItemStack itemstack = smithingrecipe.assemble(this.inputSlots, this.level.registryAccess());
|
||||
@@ -97,7 +102,9 @@
|
||||
@@ -104,7 +109,9 @@
|
||||
if (itemstack.isItemEnabled(this.level.enabledFeatures())) {
|
||||
this.selectedRecipe = smithingrecipe;
|
||||
this.resultSlots.setRecipeUsed(smithingrecipe);
|
||||
@@ -39,7 +39,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,4 +132,18 @@
|
||||
@@ -132,4 +139,18 @@
|
||||
return findSlotMatchingIngredient(smithingrecipe, itemstack);
|
||||
}).anyMatch(Optional::isPresent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user