Skip to content

Game Crash when looking at an anvil with a pre-mod used hammer #115

@Hershbja

Description

@Hershbja

I am playing singleplayer that is not open to LAN or internet. The mod was installed after the world has started and with a used hammer.

My game instantly crashes when i look at an iron anvil with a meteoric iron hammer with the current tool mode being in split mode
(After more crash testing. it doesn't matter what mode the tool is in or what material the hammer or anvil is made of).

I have disabled all code based mods (minus the game itself) and it proceeds to crash every time i look at the anvil with the hammer in my hand.

I would check to see if GetChannel(ChannelName) actually returns anything. It might be returning NULL.

Game Version: v1.21.6 (Stable)
01/10/2026 16:19:23: Critical error occurred in the following mod: smithingplus@1.8.3
Loaded Mods: juicyores@1.0.0, particlesplus@2.3.1, visibleore@1.0.1, game@1.21.6, extrainfo@1.10.1, radialgear@1.0.0, smithingplus@1.8.3, creative@1.21.6, survival@1.21.6
Involved Harmony IDs: smithingplus
System.NullReferenceException: Object reference not set to an instance of an object.
   at SmithingPlus.HammerTweaks.HammerTweaksNetwork.SendFlipToolMode(ICoreClientAPI capi, Int32 flipToolModeIndex) in /_/SmithingPlus/HammerTweaks/HammerTweaksNetwork.cs:line 64
   at SmithingPlus.HammerTweaks.ItemHammerPatch.Postfix_GetToolModes(ItemHammer __instance, ItemSlot slot, IClientPlayer forPlayer, BlockSelection blockSel, SkillItem[]& __result, SkillItem[]& ___toolModes) in /_/SmithingPlus/HammerTweaks/ItemHammerPatch.cs:line 39
   at Vintagestory.GameContent.ItemHammer.GetToolModes_Patch1(ItemHammer this, ItemSlot slot, IClientPlayer forPlayer, BlockSelection blockSel)
   at Vintagestory.Client.NoObf.HudHotbar.UpdateCurrentToolMode(Int32 newSlotIndex) in VintagestoryLib\Client\Systems\Gui\Huds\HudHotbar.cs:line 146
   at Vintagestory.Client.NoObf.HudHotbar.OnCheckToolMode(Single dt) in VintagestoryLib\Client\Systems\Gui\Huds\HudHotbar.cs:line 138
   at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 25
   at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 102
   at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 859
   at Vintagestory.Client.NoObf.ClientMain.MainGameLoop(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 751
   at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenRunningGame.cs:line 172
   at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 719
   at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 663
   at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 112
   at OpenTK.Windowing.Desktop.GameWindow.Run()
   at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 347
   at Vintagestory.Client.ClientProgram.<>c__DisplayClass10_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 131
   at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 95

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions