Fix a stirling gen with a non-burnable item in the inv making FPS drop

This commit is contained in:
tterrag1098 committed 2015-02-25 06:21:46 -05:00
1 parent 50484ea983
commit f430aac973
1 file changed
+2 -3
@@ -1,7 +1,6 @@
package crazypants.enderio.machine.generator.stirling;
import net.minecraft.block.Block;
import net.minecraft.init.Items;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@@ -61,7 +60,7 @@ public class TileEntityStirlingGenerator extends AbstractGeneratorEntity impleme
@Override
public boolean canExtractItem(int i, ItemStack itemstack, int j) {
return itemstack.getItem() == Items.bucket; // is there a more general way to do this? I've never found one
return !TileEntityFurnace.isItemFuel(itemstack);
}
@Override
@@ -141,8 +140,8 @@ public class TileEntityStirlingGenerator extends AbstractGeneratorEntity impleme
} else {
decrStackSize(0, 1);
}
needsUpdate = true;
}
needsUpdate = true;
}
}
}