Shadows-of-Fire / Foundry

Minecraft mod that adds liquid metals
GNU Lesser General Public License v3.0
5 stars 3 forks source link

Crash on right clicking Revolver (v 3.3.4) #46

Open Tonlim opened 4 years ago

Tonlim commented 4 years ago

Mod pack

FoolCraft 3 - Release 1.6 (See crash report below for all mod versions)

Reproduction

  1. Get an empty Revolver (foundry:revolver) drop from a mob farm
  2. Get Standard Round (foundry:roundnormal) drop from a mob farm
  3. Put Revolver in slot 6 on hotbar
  4. Put 17 Standard Round in row 1 slot 4 of inventory
  5. Right click Revolver

When I throw away the dropped revolver and spawn in a new one via creative mode, the game does not crash.

A dropped shotgun also does not crash.

Top of callstack:

   java.lang.NullPointerException
    at exter.foundry.item.firearm.ItemFirearm.roundMatches(ItemFirearm.java:34)
    at exter.foundry.item.firearm.ItemRevolver.onPlayerStoppedUsing(ItemRevolver.java:149)
    at net.minecraft.item.ItemStack.onPlayerStoppedUsing(ItemStack.java:548)
    at net.minecraft.entity.EntityLivingBase.stopActiveHand(EntityLivingBase.java:2808)
    at net.minecraft.client.multiplayer.PlayerControllerMP.onStoppedUsingItem(PlayerControllerMP.java:601)
    at net.minecraft.client.Minecraft.processKeyBinds(Minecraft.java:2218)
    at net.minecraft.client.Minecraft.runTickKeyboard(Minecraft.java:2019)  
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1807)

Full crash report:

https://paste.dimdev.org/furohuneku.mccrash

I also get following 'Minecraft has run into an issue' report when shift + right clicking the revolver: https://paste.dimdev.org/piwugatara.mccrash