Fix solderer bug
This commit is contained in:
@@ -66,7 +66,7 @@ public class TileSolderer extends TileMachine {
|
||||
if (items.getStackInSlot(3) != null) {
|
||||
items.getStackInSlot(3).stackSize += recipe.getResult().stackSize;
|
||||
} else {
|
||||
items.setStackInSlot(3, recipe.getResult());
|
||||
items.setStackInSlot(3, recipe.getResult().copy());
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
|
||||
@@ -317,7 +317,9 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
|
||||
|
||||
for (CraftingPattern pattern : patterns) {
|
||||
for (ItemStack output : pattern.getOutputs()) {
|
||||
items.add(ItemHandlerHelper.copyStackWithSize(output, 0));
|
||||
ItemStack patternStack = output.copy();
|
||||
patternStack.stackSize = 0;
|
||||
items.add(patternStack);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user