fix blocking mode somehow voiding items

This commit is contained in:
PrototypeTrousers
2022-02-22 19:00:01 -03:00
parent 30f4cdf545
commit b0e81ac2d1
5 changed files with 32 additions and 18 deletions
@@ -232,6 +232,10 @@ public class AdaptorItemHandler extends InventoryAdaptor
for( int slot = 0; slot < this.itemHandler.getSlots(); slot++ )
{
if( !simulate )
{
itemsToAdd = itemsToAdd.copy();
}
itemsToAdd = this.itemHandler.insertItem( slot, itemsToAdd, simulate );
if( itemsToAdd.isEmpty() )