View Issue Details

IDProjectCategoryView StatusLast Update
0000959Industrial-Craft²tools / electric itemspublic2014-03-14 04:44
Reporterkaede Assigned ToPlayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
Summary0000959: Chainsaw causes crash
DescriptionLooks like you're trying to cast ItemSword to ItemTool.
Steps To ReproduceTry to cut down a tree with a chainsaw
Additional Informationjava.lang.ClassCastException: net.minecraft.item.ItemSword cannot be cast to net.minecraft.item.ItemTool
    at ic2.core.item.tool.ItemElectricTool.getRefSword(ItemElectricTool.java:278)
    at ic2.core.item.tool.ItemElectricToolChainsaw.canHarvestBlock(ItemElectricToolChainsaw.java:67)
    at ic2.core.item.tool.ItemElectricTool.getDigSpeed(ItemElectricTool.java:107)
    at net.minecraft.entity.player.EntityPlayer.getBreakSpeed(EntityPlayer.java:849)
    at net.minecraftforge.common.ForgeHooks.blockStrength(ForgeHooks.java:121)
    at net.minecraft.block.Block.func_149737_a(Block.java:697)
    at net.minecraft.client.multiplayer.PlayerControllerMP.func_78743_b(PlayerControllerMP.java:195)
    at net.minecraft.client.Minecraft.func_147116_af(Minecraft.java:1407)
    at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1947)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:956)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:873)
    at net.minecraft.client.main.Main.main(SourceFile:103)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
TagsCan be closed, Crash
Minecraft Version

Activities

xNxExOx

2014-03-02 06:30

reporter   ~0002195

Chainsaw can not by used to anything
http://pastebin.com/wc4hvnBQ
http://pastebin.com/WE98M3yE
http://pastebin.com/YQ0YFpvG

robot256

2014-03-13 19:39

reporter   ~0002259

Looks like this is the same issue as 0000980, which is reported fixed and closed. So this one can be closed too.

Issue History

Date Modified Username Field Change
2014-03-01 06:14 kaede New Issue
2014-03-02 06:30 xNxExOx Note Added: 0002195
2014-03-02 06:30 xNxExOx Tag Attached: Crash
2014-03-13 19:39 robot256 Note Added: 0002259
2014-03-13 19:39 robot256 Tag Attached: Can be closed
2014-03-14 04:44 Player Status new => closed
2014-03-14 04:44 Player Assigned To => Player
2014-03-14 04:44 Player Resolution open => duplicate