Moulberry / NotEnoughUpdates

http://moulberry.github.io/projects
GNU Lesser General Public License v3.0
472 stars 59 forks source link

[Bug] NEU crash #252

Open Paultje52 opened 2 years ago

Paultje52 commented 2 years ago

Describe the bug: When I joined SkyBlock today, I got a lagspike and then the game crashed. Looking at the crash report, the game crashed because NEU threw a NullPointerException.

Mod Version: Latest (2.0.0)

To Reproduce I do not know what corsed the bug. I joined my island and then NEU crashed. Maybe it's because I got mining XP because my coop emptied the minions? Maybe an API request failed, because NEUManager#getLoreReplacements threw the error?

Crash report crash-2021-12-29_11.36.37-client.txt

Paultje52 commented 2 years ago

When looking through the source code, the error was caused by this line. Maybe Constants.PETS.has("custom_pet_leveling") returned null somehow?

jani270 commented 2 years ago

When looking through the source code, the error was caused by this line. Maybe Constants.PETS.has("custom_pet_leveling") returned null somehow?

It returned null bcs you have a uncomplete repo. Here are a few steps how you can fix the issue: (Please close the issue if the bug has been fixed for you.)

How to fix repo 101

Step 1: Download the repo at - https://github.com/Moulberry/NotEnoughUpdates-REPO/archive/refs/heads/master.zip Step 2: Extract the repo and copy its content - https://cdn.discordapp.com/attachments/807409061138006016/832942353839816724/unknown.png Step 3: Navigate to .minecraft/config/notenoughupdates/ Step 4: Create a repo folder if there are none. Step 5 : Paste the content you just previously copied Step 6 : The final results should look like this - https://cdn.discordapp.com/attachments/807409061138006016/832943231359909898/unknown.png