renamed method. fixed round robin while blocking mode on

This commit is contained in:
Salomão
2021-05-04 22:51:20 -03:00
parent b5da6730a1
commit 9576bec855
2 changed files with 4 additions and 3 deletions
@@ -1093,6 +1093,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
{
if( invIsBlocked( ad ) )
{
visitedFaces.remove( s );
continue;
}
}
@@ -1188,7 +1189,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
{
if( stackInSlot.isEmpty() )
{
if( itemSlot.insertItem( aeItemStack.getDefinition() ).isEmpty() )
if( itemSlot.simulateInsertItem( aeItemStack.getDefinition() ).isEmpty() )
{
copiedItemSlots.add( itemSlot.copy() );
break;
@@ -1213,7 +1214,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
while ( patStackIterator.hasNext() )
{
ItemStack patStack = patStackIterator.next();
ItemStack remainder = copiedItemSlot.insertItem( patStack );
ItemStack remainder = copiedItemSlot.simulateInsertItem( patStack );
if( !remainder.isEmpty() )
{
+1 -1
View File
@@ -109,7 +109,7 @@ public class ItemSlot
return copy;
}
public ItemStack insertItem( ItemStack sourceItemStack){
public ItemStack simulateInsertItem( ItemStack sourceItemStack){
return this.itemHandler.insertItem( this.slot, sourceItemStack , true );
}
}