Balkon's WeaponMod: Legacy

Balkon's WeaponMod: Legacy

103k Downloads

Crash when holding a gun

seriousfreezing opened this issue ยท 3 comments

commented

crash-2025-01-14_13.32.21-client.txt

Relevant part:

java.lang.IllegalStateException: Missing element ResourceKey[minecraft:enchantment / minecraft:infinity]
	at knot//net.minecraft.class_7871.method_46748(class_7871.java:15)
	at java.base/java.util.Optional.orElseThrow(Optional.java:403)
	at knot//net.minecraft.class_7871.method_46747(class_7871.java:15)
	at knot//ckathode.weaponmod.item.RangedComponent.hasAmmo(RangedComponent.java:280)
	at knot//ckathode.weaponmod.item.RangedComponent.use(RangedComponent.java:144)
	at knot//ckathode.weaponmod.item.ItemShooter.method_7836(ItemShooter.java:74)
commented

I guess, I should phrase this issue more openly: BWM:L should support turning off Vanilla features

commented

This bug is blamed on the Enchancement mod, which seems to modify all enchantments and must cause some problem with the weapon enchantment (I guess?).
And this mod also causes world loading problems.

commented

While that might be true, I would still like to address this issue by adding a short-cut for the case when the enchantments are not present under the Vanilla coordinates. For this reason, I will leave this open until then :)