fix damageable container items not being returned immediately for simulation

This commit is contained in:
PrototypeTrousers
2023-06-27 11:47:23 -03:00
parent 1442248ec3
commit cba89b0323
@@ -207,6 +207,14 @@ public class CraftingTreeProcess {
if (this.details.isCraftable() && stack.getItem().hasContainerItem(stack.getDefinition())) {
final ItemStack is = Platform.getContainerItem(stack.createItemStack());
final IAEItemStack o = AEItemStack.fromItemStack(is);
//if the container item is a identical copy or a damageable one, return it immediately.
//if it is not it will need to be recrafted
if (stack.equals(is) || is.getItem().isDamageable() || Platform.isGTDamageableItem(is.getItem())){
inv.injectItems(o, Actionable.MODULATE, src);
this.bytes++;
continue;
}
if (o != null) {
if (containerItems == null) {
containerItems = new ArrayList<>();