mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Fix a stirling gen with a non-burnable item in the inv making FPS drop
This commit is contained in:
1 parent
50484ea983
commit
f430aac973
1 file changed
+2
-3
+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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user