Spell Engine

Spell Engine

11M Downloads

Crash with Accessories Compatibility Layer and Sword Blocking Mechanics

Closed this issue ยท 1 comments

commented

Minecraft 1.21.1
Fabric 0.17.2
Spell Engine 1.7.3+1.21.1
Accessories Compatibility Layer 0.1.8
SwordBlockingMechanics-v21.1.1

With Sword Blocking Mechanics, I can put a sword in my off-hand and use it to block.

If I have a sword in my off hand, and another weapon that can be used for casting (sword, mace, modded weapons) in my main hand, pressing right click crashes the game.
The crash seems to be gone when I remove either Accessories Compatibility Layer or Spell Engine.

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 2025-09-15 14:06:39
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "dev.emi.trinkets.api.TrinketInventory.method_5438(int)" because the return value of "java.util.Map.get(Object)" is null
	at knot//net.spell_engine.compat.trinkets.TrinketsCompat.getSpellBookStack(TrinketsCompat.java:124)
	at knot//net.spell_engine.client.input.AutoSwapHelper.autoSwapForSpells(AutoSwapHelper.java:60)
	at knot//net.minecraft.class_636.handler$bnh000$spell_engine$interactItem_HEAD_LockHotbar(class_636.java:2117)
	at knot//net.minecraft.class_636.method_2919(class_636.java)
	at knot//net.minecraft.class_310.method_1583(class_310.java:1872)
	at knot//net.minecraft.class_310.method_1508(class_310.java:2111)
	at knot//net.minecraft.class_310.method_1574(class_310.java:1938)
	at knot//net.minecraft.class_310.method_1523(class_310.java:1246)
	at knot//net.minecraft.class_310.method_1514(class_310.java:882)
	at knot//net.minecraft.client.main.Main.main(Main.java:256)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:506)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:72)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
commented

The 0.1.9 update of Accessories Compatibility layer seems to have fixed this crash.