renamed method. fixed round robin while blocking mode on
This commit is contained in:
@@ -1093,6 +1093,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
|||||||
{
|
{
|
||||||
if( invIsBlocked( ad ) )
|
if( invIsBlocked( ad ) )
|
||||||
{
|
{
|
||||||
|
visitedFaces.remove( s );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1188,7 +1189,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
|||||||
{
|
{
|
||||||
if( stackInSlot.isEmpty() )
|
if( stackInSlot.isEmpty() )
|
||||||
{
|
{
|
||||||
if( itemSlot.insertItem( aeItemStack.getDefinition() ).isEmpty() )
|
if( itemSlot.simulateInsertItem( aeItemStack.getDefinition() ).isEmpty() )
|
||||||
{
|
{
|
||||||
copiedItemSlots.add( itemSlot.copy() );
|
copiedItemSlots.add( itemSlot.copy() );
|
||||||
break;
|
break;
|
||||||
@@ -1213,7 +1214,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
|||||||
while ( patStackIterator.hasNext() )
|
while ( patStackIterator.hasNext() )
|
||||||
{
|
{
|
||||||
ItemStack patStack = patStackIterator.next();
|
ItemStack patStack = patStackIterator.next();
|
||||||
ItemStack remainder = copiedItemSlot.insertItem( patStack );
|
ItemStack remainder = copiedItemSlot.simulateInsertItem( patStack );
|
||||||
|
|
||||||
if( !remainder.isEmpty() )
|
if( !remainder.isEmpty() )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ public class ItemSlot
|
|||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack insertItem( ItemStack sourceItemStack){
|
public ItemStack simulateInsertItem( ItemStack sourceItemStack){
|
||||||
return this.itemHandler.insertItem( this.slot, sourceItemStack , true );
|
return this.itemHandler.insertItem( this.slot, sourceItemStack , true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user