Old Guns Mod

Old Guns Mod

397k Downloads

Crash with Mana and Artifice

Lucifer-Kett opened this issue ยท 0 comments

commented

Describe the bug
The Game freezes and crashes when firing any gun with Mana and Artifice enabled.

To Reproduce
Steps to reproduce the behavior:

  1. Install Old Guns and Mana and Artifice
  2. Run Minecraft
  3. Equip Any Gun, Reload
  4. Fire gun
  5. See Error - Crash

Expected behavior
The gun to fire as normal.

Screenshots
image

Mod Version
v1.18.1-3.3.3-40

Mod List

oldguns_v1.18.1-3.2.0-24.jar
jei-1.18.1-9.2.1.69.jar
Patchouli-1.18.2-71.1.jar
mna-2.0.0.31.jar
geckolib-forge-1.18-3.0.57.jar
curios-forge-1.18.2-5.0.9.1.jar

Additional context

Partial Crash Log

---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 11/16/23, 12:52 AM
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "java.util.function.Predicate.test(Object)" because "p_43012_" is null
at net.minecraft.world.item.ProjectileWeaponItem.m_43010_(ProjectileWeaponItem.java:26) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:classloading}
at net.minecraft.world.entity.player.Player.m_6298_(Player.java:1942) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,re:computing_frames,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,re:classloading,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,pl:mixin:APP:epicfight.mixins.json:MixinPlayer,pl:mixin:A}
at com.mna.events.CommonEventHandler.onArrowLoose(CommonEventHandler.java:914) ~[mna-2.0.0.31.jar%23104!/:2.0.0.31] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_1082_CommonEventHandler_onArrowLoose_ArrowLooseEvent.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.event.ForgeEventFactory.onArrowLoose(ForgeEventFactory.java:642) ~[forge-1.18.2-40.2.13-universal.jar%23142!/:?] {re:mixin,re:classloading}
at com.zach2039.oldguns.world.item.firearm.FirearmItem.m_5551_(FirearmItem.java:368) ~[oldguns-1.18.2-3.3.3-40.jar%23111!/:1.18.2-3.3.3-40.3] {re:classloading}
at net.minecraft.world.item.ItemStack.m_41674_(ItemStack.java:513) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:forge:itemstack,re:classloading,pl:accesstransformer:B,xf:fml:forge:itemstack}
at net.minecraft.world.entity.LivingEntity.m_21253_(LivingEntity.java:2990) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:epicfight.mixins.json:MixinLivingEntity,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:ExpInvokerMixin,pl:mixin:APP:ars_nouveau.mixins.json:elytra.MixinLivingEntity,pl:mixin:APP:curios.mixins.json:MixinLivingEntity,pl:mixin:APP:mna.mixins.json:LivingEntityFireWalkerMixin,pl:mixin:APP:mna.mixins.json:LivingEntityOnClimbableMixin,pl:mixin:APP:mna.mixins.json:LivingEntityElytra,pl:mixin:APP:chiselsandbits.mixins.json:platform.common.LivingEntityEquipmentSlotMixin,pl:mixin:A}
at net.minecraft.client.multiplayer.MultiPlayerGameMode.m_105277_(MultiPlayerGameMode.java:431) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91279_(Minecraft.java:1838) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:ars_nouveau.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1670) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:ars_nouveau.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1021) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:ars_nouveau.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:665) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:ars_nouveau.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:205) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) ~[fmlloader-1.18.2-40.2.13.jar%2318!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] {}

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Suspected Mods:
Mana and Artifice (mna), Version: 2.0.0.31
Issue tracker URL: https://github.com/Mithion/mna/issues
at TRANSFORMER/[email protected]/com.mna.events.CommonEventHandler.onArrowLoose(CommonEventHandler.java:914)

Old Guns Mod (oldguns), Version: 1.18.2-3.3.3-40.3
	Issue tracker URL: https://github.com/zach2039/oldguns/issues
	at TRANSFORMER/[email protected]/com.zach2039.oldguns.world.item.firearm.FirearmItem.m_5551_(FirearmItem.java:368)

Stacktrace:
at net.minecraft.world.item.ProjectileWeaponItem.m_43010_(ProjectileWeaponItem.java:26) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:classloading}
at net.minecraft.world.entity.player.Player.m_6298_(Player.java:1942) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,re:computing_frames,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,re:classloading,pl:accesstransformer:B,xf:fml:lanserverproperties:Player.createPlayerUUID_String,xf:fml:xaeroworldmap:xaero_wm_playerentity_iswearing,xf:fml:xaerominimap:xaero_playerentity_iswearing,pl:mixin:APP:epicfight.mixins.json:MixinPlayer,pl:mixin:A}
at com.mna.events.CommonEventHandler.onArrowLoose(CommonEventHandler.java:914) ~[mna-2.0.0.31.jar%23104!/:2.0.0.31] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_1082_CommonEventHandler_onArrowLoose_ArrowLooseEvent.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}
at net.minecraftforge.event.ForgeEventFactory.onArrowLoose(ForgeEventFactory.java:642) ~[forge-1.18.2-40.2.13-universal.jar%23142!/:?] {re:mixin,re:classloading}
at com.zach2039.oldguns.world.item.firearm.FirearmItem.m_5551_(FirearmItem.java:368) ~[oldguns-1.18.2-3.3.3-40.jar%23111!/:1.18.2-3.3.3-40.3] {re:classloading}
at net.minecraft.world.item.ItemStack.m_41674_(ItemStack.java:513) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:forge:itemstack,re:classloading,pl:accesstransformer:B,xf:fml:forge:itemstack}
at net.minecraft.world.entity.LivingEntity.m_21253_(LivingEntity.java:2990) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:epicfight.mixins.json:MixinLivingEntity,pl:mixin:APP:citadel.mixins.json:LivingEntityMixin,pl:mixin:APP:ars_nouveau.mixins.json:ExpInvokerMixin,pl:mixin:APP:ars_nouveau.mixins.json:elytra.MixinLivingEntity,pl:mixin:APP:curios.mixins.json:MixinLivingEntity,pl:mixin:APP:mna.mixins.json:LivingEntityFireWalkerMixin,pl:mixin:APP:mna.mixins.json:LivingEntityOnClimbableMixin,pl:mixin:APP:mna.mixins.json:LivingEntityElytra,pl:mixin:APP:chiselsandbits.mixins.json:platform.common.LivingEntityEquipmentSlotMixin,pl:mixin:A}
at net.minecraft.client.multiplayer.MultiPlayerGameMode.m_105277_(MultiPlayerGameMode.java:431) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.m_91279_(Minecraft.java:1838) ~[client-1.18.2-20220404.173914-srg.jar%23137!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick,xf:fml:xaeroworldmap:xaero_wm_minecraft_runtick_render_call,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:ars_nouveau.mixins.json:light.ClientMixin,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:ars_nouveau.mixins.json:camera.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
-- Affected level --

I will admit, I had other mods running at this time, but disabling only Mana And Artifice allowed me to fire the gun as normal, so I'm assuming it's the only relevant mod to the crash other than Old Guns (which is backed up by the crash log).

I also assume it's an issue with Mana trying to place an effect on the projectile, but cannot find it?

Thank You.