Areas (Forge)

Areas (Forge)

890k Downloads

Thrown Tetra weapon vanishes on collect because of Pumpkillager event?

XAgent1990 opened this issue ยท 0 comments

commented

Information

Minecraft version: 1.20.1
Modloader: Forge
Forge version: 47.3.0
Environment: Multiplayer

First mod name: Pumpkillager's Quest
First mod version: 4.4

Second mod name: Tetra
Second mod version: 6.4.0

Description

When throwing a tetra throwable weapon (tetra:thrown_modular_item) with loyalty, collecting an item in the slot where the thrown weapon was after throwing it, once it returns and is collected it just disappears.
Is this something you can fix? Or should I contact the Tetra developer?
The following error is shown in the log:

[17:44:23] [Render thread/ERROR]: Exception caught during firing event: Cannot invoke "java.util.concurrent.CopyOnWriteArrayList.size()" because the return value of "java.util.WeakHashMap.get(Object)" is null
Index: 1
Listeners:
0: NORMAL
1: ASM: com.natamus.pumpkillagersquest.forge.events.ForgePkAttackEvents@2baa4619 onArrowShoot(Lnet/minecraftforge/event/entity/player/ArrowNockEvent;)V
2: LOW
3: ASM: se.mickelus.tetra.effect.ItemEffectHandler@31324fe2 onArrowNock(Lnet/minecraftforge/event/entity/player/ArrowNockEvent;)V
java.lang.NullPointerException: Cannot invoke "java.util.concurrent.CopyOnWriteArrayList.size()" because the return value of "java.util.WeakHashMap.get(Object)" is null
at TRANSFORMER/[email protected]/com.natamus.pumpkillagersquest_common_forge.events.PkAttackEvents.onArrowShoot(PkAttackEvents.java:22)
at TRANSFORMER/[email protected]/com.natamus.pumpkillagersquest.forge.events.ForgePkAttackEvents.onArrowShoot(ForgePkAttackEvents.java:12)
at TRANSFORMER/[email protected]/com.natamus.pumpkillagersquest.forge.events.ForgePkAttackEvents_onArrowShoot_ArrowNockEvent.invoke(.dynamic)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
at TRANSFORMER/[email protected]/net.minecraftforge.event.ForgeEventFactory.onArrowNock(ForgeEventFactory.java:659)
at TRANSFORMER/[email protected]/se.mickelus.tetra.items.modular.impl.bow.ModularBowItem.m_7203
(ModularBowItem.java:427)
at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack.m_41682
(ItemStack.java:275)
at TRANSFORMER/[email protected]/com.anthonyhilyard.iceberg.util.EntityCollector.collectEntitiesFromItem(EntityCollector.java:126)
at TRANSFORMER/[email protected]/com.anthonyhilyard.iceberg.util.EntityCollector.itemCreatesEntity(EntityCollector.java:196)
at TRANSFORMER/[email protected]/com.anthonyhilyard.iceberg.renderer.CustomItemRenderer.renderModel(CustomItemRenderer.java:324)
at TRANSFORMER/[email protected]/com.anthonyhilyard.iceberg.renderer.CustomItemRenderer.renderGuiModel(CustomItemRenderer.java:149)
at TRANSFORMER/[email protected]/com.anthonyhilyard.iceberg.renderer.CustomItemRenderer.renderDetailModelIntoGUI(CustomItemRenderer.java:626)
at TRANSFORMER/[email protected]/com.anthonyhilyard.legendarytooltips.tooltip.ItemModelComponent.m_183452_(ItemModelComponent.java:121)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.GuiGraphics.redirect$cik000$drawPosAwareComponent(GuiGraphics.java:1244)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.GuiGraphics.m_280497_(GuiGraphics.java:629)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.GuiGraphics.m_280677_(GuiGraphics.java:562)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.GuiGraphics.renderTooltip(GuiGraphics.java:556)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.shulkerboxtooltip$drawMouseoverTooltip(AbstractContainerScreen.java:2207)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.shulkerboxtooltip$lockTooltipPosition(AbstractContainerScreen.java:1797)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.redirect$cja000$lockTooltipPosition(AbstractContainerScreen.java:2201)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.m_280072_(AbstractContainerScreen.java:163)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.m_88315_(CreativeModeInventoryScreen.java:650)
at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.Screen.m_280264_(Screen.java:109)
at TRANSFORMER/[email protected]/net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:427)
at TRANSFORMER/[email protected]/net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:420)
at TRANSFORMER/[email protected]/net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:965)
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1146)
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718)
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:218)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:108)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)