Fixed performance of Vat, SAG Mill and AlloySmelter

This commit is contained in:
CrazyPants committed 2014-05-28 20:16:53 +08:00
1 parent 7abf8d26f0
commit be5a1fb371
9 files changed
+140 -14

No files matched your search

@@ -448,7 +448,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
for(int i=0;i<targetSlots.length;i++) {
int tSlot = targetSlots[i];
ItemStack targetStack = target.getStackInSlot(tSlot);
if(targetStack != null) {
if(targetStack != null && target.canExtractItem(i, targetStack, side.getOpposite().ordinal())) {
int res = ItemUtil.doInsertItem(this, targetStack, side.getOpposite());
if(res > 0) {
targetStack = targetStack.copy();