Shadows-of-Fire / GatewaysToEternity

A minecraft mod about spawning mobs via portals
MIT License
19 stars 16 forks source link

Apotheotic Gate Pearl breaks JEI tooltips #47

Closed Solego closed 7 months ago

Solego commented 9 months ago

When looking at the tooltip for the Apotheotic Boss gate pearl, if you scroll to look at any wave beyond the first in the tooltip, JEI will error out and stop displaying tooltips for all items (Tooltip Error, See Logs) until client restart. Log details below:

-- Ingredient -- Details: Name: Gate Pearl - Small Apothic Boss Gate Mod's Name: Gateways To Eternity Registry Name: gateways:gate_pearl Class Name: class net.minecraft.world.item.ItemStack toString Name: 1 gate_pearl Unique Id for JEI (for JEI Blacklist): gateways:gate_pearl:apotheosis:boss_gate_small Ingredient Type for JEI: class net.minecraft.world.item.ItemStack Error Info gathered from JEI: 1 gate_pearl gateways:gate_pearl nbt:{gateway:"apotheosis:boss_gate_small"}

-- Stack Trace --

java.lang.NullPointerException: Cannot invoke "dev.shadowsoffire.apotheosis.adventure.boss.ApothBoss.getEntity()" because the return value of "java.util.function.Supplier.get()" is null at TRANSFORMER/apotheosis@7.2.2/dev.shadowsoffire.apotheosis.adventure.compat.GatewaysCompat$BossWaveEntity.getDescription(GatewaysCompat.java:69) at TRANSFORMER/gateways@4.2.3/dev.shadowsoffire.gateways.client.NormalGateClient.appendPearlTooltip(NormalGateClient.java:54) at TRANSFORMER/gateways@4.2.3/dev.shadowsoffire.gateways.gate.normal.NormalGateway.appendPearlTooltip(NormalGateway.java:61) at TRANSFORMER/gateways@4.2.3/dev.shadowsoffire.gateways.item.GatePearlItem.m7373(GatePearlItem.java:101) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.item.ItemStack.m41651(ItemStack.java:631) at TRANSFORMER/jei@15.3.0.1/mezz.jei.library.render.ItemStackRenderer.getTooltip(ItemStackRenderer.java:36) at TRANSFORMER/jei@15.3.0.1/mezz.jei.library.render.ItemStackRenderer.getTooltip(ItemStackRenderer.java:18) at TRANSFORMER/jei@15.3.0.1/mezz.jei.common.util.SafeIngredientUtil.getTooltip(SafeIngredientUtil.java:56) at TRANSFORMER/jei@15.3.0.1/mezz.jei.common.util.SafeIngredientUtil.getTooltip(SafeIngredientUtil.java:45) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientGridTooltipHelper.getTooltip(IngredientGridTooltipHelper.java:60) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientGridTooltipHelper.drawTooltip(IngredientGridTooltipHelper.java:55) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientGrid.lambda$drawTooltips$4(IngredientGrid.java:184) at java.base/java.util.Optional.ifPresent(Optional.java:178) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientGrid.drawTooltips(IngredientGrid.java:184) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientGridWithNavigation.drawTooltips(IngredientGridWithNavigation.java:246) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.overlay.IngredientListOverlay.drawTooltips(IngredientListOverlay.java:183) at TRANSFORMER/jei@15.3.0.1/mezz.jei.gui.events.GuiEventHandler.onDrawScreenPost(GuiEventHandler.java:127) at TRANSFORMER/jei@15.3.0.1/mezz.jei.forge.startup.EventRegistration.lambda$registerGuiHandler$14(EventRegistration.java:112) at TRANSFORMER/jei@15.3.0.1/mezz.jei.core.util.WeakConsumer.accept(WeakConsumer.java:17) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:260) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:252) 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/forge@47.2.19/net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:428) at TRANSFORMER/forge@47.2.19/net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:420) at TRANSFORMER/minecraft@1.20.1/net.minecraft.client.renderer.GameRenderer.m109093(GameRenderer.java:965) at TRANSFORMER/minecraft@1.20.1/net.minecraft.client.Minecraft.m91383(Minecraft.java:1146) at TRANSFORMER/minecraft@1.20.1/net.minecraft.client.Minecraft.m91374(Minecraft.java:718) at TRANSFORMER/minecraft@1.20.1/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/fmlloader@1.20.1-47.2.19/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) at MC-BOOTSTRAP/fmlloader@1.20.1-47.2.19/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) at MC-BOOTSTRAP/fmlloader@1.20.1-47.2.19/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.Launcher.run(Launcher.java:108) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.Launcher.main(Launcher.java:78) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)

Solego commented 9 months ago

The modpack in use is ATM9 v2.41, standard configuration, no custom wonkiness from my end here.

JosEffigy commented 9 months ago

I have the same issue and i found out the problem. I forgot to install this mod on the server. and when i joined with my game, i dont get rejected and am able to join the game until my entire computer hangs and game crashes. i fixed it by having the mod both sides and i get no tooltip error anymore

Solego commented 9 months ago

So this is specific to JUST the Apotheotic pearl. All other pearls function correctly. I had just updated the server using the ATM9 server files, and confirmed that all relevant mods are in the server mod folder. Gateways To Eternity and Apotheosis. I do not know if this is a new issue as of 2.41, or if it has always been an issue, I only started getting into the pearls after the update.

Tiln1 commented 8 months ago

I'm having the same issue, Gateways v4.2.3, Apotheosis v7.3.0, ATM9 - No Frills v0.1.8

Shadows-of-Fire commented 7 months ago

This support is managed by Apotheosis (so it needs to be reported on that repo), though I've known that pearl to be broken for a while. I should probably just ship it disabled.