ichttt / FirstAid

A Minecraft Mod that changes the vanilla health system
GNU General Public License v3.0
27 stars 28 forks source link

[1.18.2] Crash if player dies when sleeping #195

Open DeshiDesu opened 1 year ago

DeshiDesu commented 1 year ago

Version of First Aid used:

firstaid-1.11.1.jar

When used with somnia awoken mod, you can simulate the world instead of skipping the night.

Using the Cold Sweat mod (A temperature mod for context), allows the player to take damage after reaching high or low temperatures. Instead of exiting the bed after taking temperature damage, the player stays on the bed until the player dies, which leads to a crash.

To reproduce this:

  1. Sleep at night
  2. Accumulate -100 temperature
  3. Wait for crash

Other mods related to the crash:

Somnia-Awoken-1.18.2-3.0.105.jar ColdSweat-2.2-b03e.jar

The result of the crash:

java.lang.IllegalArgumentException: Player DeshiDesu is missing a damage model! at ichttt.mods.firstaid.common.util.CommonUtils.lambda$getDamageModel$1

Here is my crash log for reference: crash-2023-04-05_20.33.12-server.txt