Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes when looking at any mob (1.19.4, 1.1.2) #18

Closed
FrozenEarth-git opened this issue Aug 4, 2023 · 8 comments
Closed

Game crashes when looking at any mob (1.19.4, 1.1.2) #18

FrozenEarth-git opened this issue Aug 4, 2023 · 8 comments

Comments

@FrozenEarth-git
Copy link

FrozenEarth-git commented Aug 4, 2023

Running the game with no other mods but Fabric 1.19.4 and TES 1.1.2.

Seems to be an issue with getting the entity's type? This happens when looking at any type of mob, passive or hostile. Lmk if more info is needed.

java.util.NoSuchElementException: No value present
	at java.base/java.util.Optional.orElseThrow(Optional.java:377)
	at net.tslat.tes.util.TESUtil.lambda$getEntityType$0(TESUtil.java:40)
	at java.base/java.util.Map.computeIfAbsent(Map.java:1054)
	at net.tslat.tes.util.TESUtil.getEntityType(TESUtil.java:36)
	at net.tslat.tes.core.hud.element.BuiltinHudElements.renderEntityHealth(BuiltinHudElements.java:58)
	at net.tslat.tes.core.hud.TESHud.renderForHud(TESHud.java:117)
	at net.minecraft.class_757.handler$zkp000$tslatentitystatus$renderTESHud(class_757.java:2597)
	at net.minecraft.class_757.method_3192(class_757.java:918)
	at net.minecraft.class_310.method_1523(class_310.java:1218)
	at net.minecraft.class_310.method_1514(class_310.java:801)
	at net.minecraft.client.main.Main.main(Main.java:237)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)```
@Tslat
Copy link
Owner

Tslat commented Aug 4, 2023

Does it happen with no other mods present?

From what I remember, this only happened when you used a mod that broke the entitytype tags in fabric

@FrozenEarth-git
Copy link
Author

Just the fabric API v.0.86.1 and TES 1.1.2 in there.

@FrozenEarth-git
Copy link
Author

FrozenEarth-git commented Aug 5, 2023

With some more testing, I have found this bug only triggers if you open the game, load into a multiplayer server, and look at a mob.

The crash is avoided entirely if you first join a singleplayer world first (you can look at mobs freely) and then join a multiplayer server. As long as you join a singleplayer world first before looking at a mob, it doesn't crash.

@Tslat
Copy link
Owner

Tslat commented Aug 5, 2023

Does the server have other mods?

@FrozenEarth-git
Copy link
Author

There's no required mods for the server, just Bukkit/Spigot plugins and their own custom plugins

@Tslat
Copy link
Owner

Tslat commented Aug 5, 2023

Is fabric & fabricapi on the server...?

Think I know what's going on here lol

@FrozenEarth-git
Copy link
Author

FrozenEarth-git commented Aug 6, 2023

Not sure how you would want me to check?

@Tslat
Copy link
Owner

Tslat commented Aug 6, 2023

All good, I should be able to resolve it

@Tslat Tslat closed this as completed Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants