Old Guns Mod

Old Guns Mod

397k Downloads

Weapons are not firing

ChaosCron1 opened this issue ยท 0 comments

commented

As the title reflects, I'm having a hard time using this mod due to a bug I'm having while firing any weapon. Here's the error in my log. Minecraft version 1.18.2. It appears to me to be an incompatibility with SkillCloaks.

[17:49:48] [Server thread/ERROR]: Exception caught during firing event: Cannot invoke "java.util.function.Predicate.test(Object)" because "p_43012_" is null
	Index: 1
	Listeners:
		0: NORMAL
		1: ASM: class net.mindoth.skillcloaks.item.cloak.RangingCloakItem onItemUseFinish(Lnet/minecraftforge/event/entity/living/LivingEntityUseItemEvent$Stop;)V
		2: ASM: class net.mindoth.skillcloaks.item.cloak.FletchingCloakItem onCrossbowUseFinish(Lnet/minecraftforge/event/entity/living/LivingEntityUseItemEvent$Stop;)V
		3: net.minecraftforge.eventbus.EventBus$$Lambda$4449/0x0000000800ca6148@74089528
java.lang.NullPointerException: Cannot invoke "java.util.function.Predicate.test(Object)" because "p_43012_" is null
	at TRANSFORMER/[email protected]/net.minecraft.world.item.ProjectileWeaponItem.m_43010_(ProjectileWeaponItem.java:26)
	at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.m_6298_(Player.java:1942)
	at TRANSFORMER/[email protected]/net.mindoth.skillcloaks.item.cloak.RangingCloakItem.onItemUseFinish(RangingCloakItem.java:70)
	at net.minecraftforge.eventbus.ASMEventHandler_321_RangingCloakItem_onItemUseFinish_Stop.invoke(.dynamic)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
	at TRANSFORMER/[email protected]/net.minecraftforge.event.ForgeEventFactory.onUseItemStop(ForgeEventFactory.java:305)
	at TRANSFORMER/[email protected]/net.minecraft.world.entity.LivingEntity.m_21253_(LivingEntity.java:2988)
	at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.m_7502_(ServerGamePacketListenerImpl.java:947)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m_5797_(ServerboundPlayerActionPacket.java:34)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m_5797_(ServerboundPlayerActionPacket.java:8)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22)
	at TRANSFORMER/[email protected]/net.minecraft.server.TickTask.run(TickTask.java:18)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:799)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:164)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:782)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:776)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:116)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:761)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:689)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261)
	at java.base/java.lang.Thread.run(Thread.java:833)

[17:49:48] [Server thread/ERROR]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundPlayerActionPacket@32b48311, suppressing 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%23160!/:?]
	at net.minecraft.world.entity.player.Player.m_6298_(Player.java:1942) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.mindoth.skillcloaks.item.cloak.RangingCloakItem.onItemUseFinish(RangingCloakItem.java:70) ~[skillcloaks-1.18.2-1.0.8.jar%23138!/:1.18.2-1.0.8]
	at net.minecraftforge.eventbus.ASMEventHandler_321_RangingCloakItem_onItemUseFinish_Stop.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.onUseItemStop(ForgeEventFactory.java:305) ~[forge-1.18.2-40.2.1-universal.jar%23165!/:?]
	at net.minecraft.world.entity.LivingEntity.m_21253_(LivingEntity.java:2988) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.network.ServerGamePacketListenerImpl.m_7502_(ServerGamePacketListenerImpl.java:947) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m_5797_(ServerboundPlayerActionPacket.java:34) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m_5797_(ServerboundPlayerActionPacket.java:8) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.TickTask.run(TickTask.java:18) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:799) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:164) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:782) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:776) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:116) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:761) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:689) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[client-1.18.2-20220404.173914-srg.jar%23160!/:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]