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/minecraft@1.18.2/net.minecraft.world.entity.Entity.m_20177_(Entity.java:2035) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.util.EntityUtil.showHealthBar(EntityUtil.java:48) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.bars.HealthBarRenderer.prepareRenderInWorld(HealthBarRenderer.java:44) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.ClientEventHandler.entityRender(ClientEventHandler.java:32) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.renderer.entity.LivingEntityRenderer.m_7392_(LivingEntityRenderer.java:137) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem$MenuPlayerRenderer.render(PlayerEntityCustomizationItem.java:458) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderEntityStatic(PlayerEntityCustomizationItem.java:324) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.lambda$renderPlayerEntity$0(PlayerEntityCustomizationItem.java:297) at TRANSFORMER/minecraft@1.18.2/com.mojang.blaze3d.systems.RenderSystem.m_69890_(RenderSystem.java:1171) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderPlayerEntity(PlayerEntityCustomizationItem.java:296) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.render(PlayerEntityCustomizationItem.java:241) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.renderBackground(MenuHandlerBase.java:1429) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.drawToBackground(MenuHandlerBase.java:1262) at TRANSFORMER/fancymenu@2.8.0/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/eventbus@5.0.3/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_96626_(Screen.java:470) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_96558_(Screen.java:452) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_7333_(Screen.java:444) at TRANSFORMER/fancymenu@2.8.0/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/eventbus@5.0.3/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/forge@40.1.31/net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:385) at TRANSFORMER/forge@40.1.31/net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:379) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:890) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1044) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) at TRANSFORMER/minecraft@1.18.2/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/fmlloader@1.18.2-40.1.31/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.0.0/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)
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/minecraft@1.18.2/net.minecraft.world.entity.Entity.m_20177_(Entity.java:2035) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.util.EntityUtil.showHealthBar(EntityUtil.java:48) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.bars.HealthBarRenderer.prepareRenderInWorld(HealthBarRenderer.java:44) at TRANSFORMER/torohealth@1.18-forge-2/net.torocraft.torohealth.ClientEventHandler.entityRender(ClientEventHandler.java:32) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.renderer.entity.LivingEntityRenderer.m_7392_(LivingEntityRenderer.java:137) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem$MenuPlayerRenderer.render(PlayerEntityCustomizationItem.java:458) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderEntityStatic(PlayerEntityCustomizationItem.java:324) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.lambda$renderPlayerEntity$0(PlayerEntityCustomizationItem.java:297) at TRANSFORMER/minecraft@1.18.2/com.mojang.blaze3d.systems.RenderSystem.m_69890_(RenderSystem.java:1171) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.renderPlayerEntity(PlayerEntityCustomizationItem.java:296) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.item.playerentity.PlayerEntityCustomizationItem.render(PlayerEntityCustomizationItem.java:241) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.renderBackground(MenuHandlerBase.java:1429) at TRANSFORMER/fancymenu@2.8.0/de.keksuccino.fancymenu.menu.fancy.menuhandler.MenuHandlerBase.drawToBackground(MenuHandlerBase.java:1262) at TRANSFORMER/fancymenu@2.8.0/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/eventbus@5.0.3/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_96626_(Screen.java:470) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_96558_(Screen.java:452) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.gui.screens.Screen.m_7333_(Screen.java:444) at TRANSFORMER/fancymenu@2.8.0/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/eventbus@5.0.3/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) at TRANSFORMER/forge@40.1.31/net.minecraftforge.client.ForgeHooksClient.drawScreenInternal(ForgeHooksClient.java:385) at TRANSFORMER/forge@40.1.31/net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:379) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:890) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1044) at TRANSFORMER/minecraft@1.18.2/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) at TRANSFORMER/minecraft@1.18.2/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/fmlloader@1.18.2-40.1.31/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:106) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.0.0/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)