make ItemSlots copy-able

This commit is contained in:
Salomão
2021-05-03 21:07:51 -03:00
parent b541025738
commit 0c0aafba2f
2 changed files with 37 additions and 0 deletions
@@ -55,6 +55,8 @@ class ItemHandlerIterator implements Iterator<ItemSlot>
this.itemSlot.setExtractable( !this.itemHandler.extractItem( this.slot, 1, true ).isEmpty() );
this.itemSlot.setItemStack( this.itemHandler.getStackInSlot( this.slot ) );
this.itemSlot.setSlot( this.slot );
this.itemSlot.setSlotLimit( this.itemHandler.getSlotLimit( this.slot ) );
this.itemSlot.setItemHandler( this.itemHandler );
this.slot++;
return this.itemSlot;
}