mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 04:32:18 +00:00
And the same fix again.
This commit is contained in:
1 parent
8161383aeb
commit
bdca623526
1 file changed
+1
-1
@@ -104,7 +104,7 @@ public class ItemDarkSteelPickaxe extends ItemPickaxe implements IEnergyContaine
|
||||
public boolean onItemUse(ItemStack item, EntityPlayer player, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) {
|
||||
|
||||
int slot = player.inventory.currentItem + 1;
|
||||
if(slot < 9 && player.inventory.mainInventory[slot] != null) {
|
||||
if(slot < 9 && player.inventory.mainInventory[slot] != null && !(player.inventory.mainInventory[slot].getItem() instanceof IDarkSteelItem)) {
|
||||
return player.inventory.mainInventory[slot].getItem().onItemUse(player.inventory.mainInventory[slot], player, par3World, par4, par5, par6, par7, par8,
|
||||
par9, par10);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user