ToroHealth Damage Indicators

ToroHealth Damage Indicators

24M Downloads

BUG with Fancymenu mod

fabmm opened this issue ยท 0 comments

commented

Torohealth thinks the player entity in the main menu as a normal entity, and throws exceptions and breaks the game.

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.player.Player.m_5833_()" because "p_20178_" is null at TRANSFORMER/[email protected]/net.minecraft.world.entity.Entity.m_20177_(Entity.java:2035) at TRANSFORMER/[email protected]/net.torocraft.torohealth.util.EntityUtil.showHealthBar(EntityUtil.java:48) at TRANSFORMER/[email protected]/net.torocraft.torohealth.bars.HealthBarRenderer.prepareRenderInWorld(HealthBarRenderer.java:44) at TRANSFORMER/[email protected]/net.torocraft.torohealth.ClientEventHandler.entityRender(ClientEventHandler.java:32) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) at MC-BOOTSTRAP/[email protected]/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) 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.minecraft.client.renderer.entity.LivingEntityRenderer.m_7392_(LivingEntityRenderer.java:137) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem$MenuPlayerRenderer.render(PlayerEntityCustomizationItem.java:458) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderEntityStatic(PlayerEntityCustomizationItem.java:324) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.lambda$renderPlayerEntity$0(PlayerEntityCustomizationItem.java:297) at TRANSFORMER/[email protected]/com.mojang.blaze3d.systems.RenderSystem.m_69890_(RenderSystem.java:1171) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderPlayerEntity(PlayerEntityCustomizationItem.java:296) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.render(PlayerEntityCustomizationItem.java:241) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.renderBackground(MenuHandlerBase.java:1429) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.drawToBackground(MenuHandlerBase.java:1262) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.menuhandler.custom.MainMenuHandler.drawToBackground(MainMenuHandler.java:135) at net.minecraftforge.eventbus.ASMEventHandler_352_MenuHandlerBase_drawToBackground_BackgroundDrawnEvent.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.minecraft.client.gui.screens.Screen.m_96626_(Screen.java:470) at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.Screen.m_96558_(Screen.java:452) at TRANSFORMER/[email protected]/net.minecraft.client.gui.screens.Screen.m_7333_(Screen.java:444) at TRANSFORMER/[email protected]/de.keksuccino.fancymenu.menu.fancy.menuhandler.custom.MainMenuHandler.onRender(MainMenuHandler.java:104) at net.minecraftforge.eventbus.ASMEventHandler_354_MainMenuHandler_onRender_Pre.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.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:385) at TRANSFORMER/[email protected]/net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:379) at TRANSFORMER/[email protected]/net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:890) at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1044) at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:205) 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.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) 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:106) at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) 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:149) 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 io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) 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 org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) at org.multimc.EntryPoint.listen(EntryPoint.java:143) at org.multimc.EntryPoint.main(EntryPoint.java:34)