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

[CRASH] 1.21.1 crash when viewing item with an enchantment from another mod that I assume doesn't have a defined description. #265

Open
Temil2006 opened this issue Nov 29, 2024 · 1 comment
Labels
bug Something is not working as intended. crash Something caused the game to stop running. unverified The contents of this issue have not yet been verified.

Comments

@Temil2006
Copy link

Minecraft Version

1.21.1

Mod Version

21.1.5

Mod Loader

Forge

What environment are you running the mod in?

Client

Issue Description

anytime when you hover over an item that I can only assume doesn't have a description for the mods enchantment, it crashes the client because it can't find the description as null.

easiest way to found to see this happening is to enable the requirement to hold SHIFT to see the description, then place the original item (without the problem) into the anvil, the enchantment book into there, and hover over the resulting item. you will see that the resulting item will have different spacing when not holding shift. if you press shift on the original item, it will "hide" the space under the enchantment name. but if you hover over the resulting item, you will see there is no space there.. instead when you press SHIFT over the resulting item, it will crash the client.. because it's trying to go in reverse for the item description. (kind of hard to explain. hope that makes sense? .. I can send a video if needed).

screenshot of hovering over original item (not holding shift)
image

screenshot of hover over resulting item (not holding shift)
image

Yield 3 is from the "Infinate Caves" mod, but this happens with multiple mods that add enchantments, again I can only assume the other mod auther never set a description for the enchantment, so it's breaking yours. feel like it's there issue, but asking them to set descriptions for multiple mods to work around yours isn't really doable or as easier as asking you to take this "blank descriptions" into account.

Again, just a theory as i can't find any description for any of there enchantments anywere, so assume that's the issue.

Crash Log

crash_export.txt

Are you doing anything weird?

No response

@Temil2006 Temil2006 added bug Something is not working as intended. crash Something caused the game to stop running. unverified The contents of this issue have not yet been verified. labels Nov 29, 2024
@Darkhax
Copy link
Member

Darkhax commented Nov 30, 2024

Hello, the crash log shows that the crash is coming from better combat. It looks like someone is adding a null tooltip entry. That would line up with your theory that the missing description is causing this, however I already account for that in the code. I will take a closer look at this in a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as intended. crash Something caused the game to stop running. unverified The contents of this issue have not yet been verified.
Projects
None yet
Development

No branches or pull requests

2 participants