fix outputs in processing terminal slowly migrating upwards
This commit is contained in:
+7
-2
@@ -262,8 +262,13 @@ public class ContainerWirelessPatternTerminal extends ContainerPatternEncoder im
|
|||||||
ItemHandlerUtil.setStackInSlot(this.crafting, x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
ItemHandlerUtil.setStackInSlot(this.crafting, x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int x = 0; x < this.output.getSlots() && x < details.getOutputs().length; x++) {
|
for (int x = 0; x < this.output.getSlots(); x++) {
|
||||||
final IAEItemStack item = details.getOutputs()[x];
|
final IAEItemStack item;
|
||||||
|
if (x < details.getOutputs().length) {
|
||||||
|
item = details.getOutputs()[x];
|
||||||
|
} else {
|
||||||
|
item = null;
|
||||||
|
}
|
||||||
this.output.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
this.output.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,8 +69,13 @@ public abstract class AbstractPartEncoder extends AbstractPartTerminal {
|
|||||||
this.crafting.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
this.crafting.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int x = 0; x < this.output.getSlots() && x < details.getOutputs().length; x++) {
|
for (int x = 0; x < this.output.getSlots(); x++) {
|
||||||
final IAEItemStack item = details.getOutputs()[x];
|
final IAEItemStack item;
|
||||||
|
if (x < details.getOutputs().length) {
|
||||||
|
item = details.getOutputs()[x];
|
||||||
|
} else {
|
||||||
|
item = null;
|
||||||
|
}
|
||||||
this.output.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
this.output.setStackInSlot(x, item == null ? ItemStack.EMPTY : item.createItemStack());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user