Err too much.

This commit is contained in:
AlgorithmX2
2014-01-20 10:41:37 -06:00
parent 5652ec30ec
commit 834e9c04c5
159 changed files with 7953 additions and 1541 deletions
+4 -6
View File
@@ -111,7 +111,7 @@ public class PartExportBus extends PartSharedItemBus implements IGridTickable
bch.addBox( 6, 6, 11, 10, 10, 12 );
}
int itemToSend = 1;
long itemToSend = 1;
boolean didSomething = false;
@Override
@@ -140,8 +140,6 @@ public class PartExportBus extends PartSharedItemBus implements IGridTickable
break;
}
boolean didSomething = false;
try
{
InventoryAdaptor d = getHandler();
@@ -183,10 +181,10 @@ public class PartExportBus extends PartSharedItemBus implements IGridTickable
private void pushItemIntoTarget(InventoryAdaptor d, IEnergyGrid energy, FuzzyMode fzMode, IMEInventory<IAEItemStack> inv, IAEItemStack ais)
{
ItemStack is = ais.getItemStack();
is.stackSize = itemToSend;
is.stackSize = (int) itemToSend;
ItemStack o = d.simulateAdd( is );
int canFit = o == null ? itemToSend : itemToSend - o.stackSize;
long canFit = o == null ? itemToSend : itemToSend - o.stackSize;
if ( canFit > 0 )
{
@@ -202,7 +200,7 @@ public class PartExportBus extends PartSharedItemBus implements IGridTickable
if ( failed != null )
{
ais.setStackSize( failed.stackSize );
inv.injectItems( ais, Actionable.MODULATE );
inv.injectItems( ais, Actionable.MODULATE, mySrc );
}
else
didSomething = true;