Mutant Monsters [Forge & Fabric]

Mutant Monsters [Forge & Fabric]

21M Downloads

[Bug]: Creeper Mutant produces NaN delta movement

SaloEater opened this issue ยท 1 comments

commented

Mod Loader (Required)

Forge

Minecraft Version(s) (Required)

1.20.1

Mod Version(s) (Required)

8.0.7

Notes (Required)

Most important part of the log - https://pastebin.com/qAKCsFFj
That error comes from here - https://github.com/mahjerion/Mine-And-Slash-Rework/blob/1.20-Forge/src/main/java/com/robertx22/mine_and_slash/database/data/spells/components/actions/vanity/ParticleInRadiusAction.java#L58
Apparently this causes the issue - https://github.com/Fuzss/mutantmonsters/blob/main/1.20.1/Common/src/main/java/fuzs/mutantmonsters/world/entity/mutant/MutantCreeper.java#L148C18-L148C22

getDeltaMovement returns (, NaN, ) after player is hit by mutant creeper

Steps to reproduce are these:

  1. Download modpack - https://www.curseforge.com/minecraft/modpacks/craft-to-exile-2
  2. Enter the world
  3. Place Map Device
  4. Enter creative mode
  5. Run /mine_and_slash give map <nickname> 100 common 1
  6. Use map device with map in your hand
  7. Use map device behind you again to leave the map
  8. Use map device again to return to the map
  9. Use amethyst shard
    9.1) Use boss portal block
  10. Run /kill @e[type=!minecraft:player]
  11. Climb on top of the "Treasure Room Portal" here
  12. Run /mine_and_slash set level <nickname> 100
  13. Hold H and choose "Mine And Slash Hub"
  14. Press "Classes"
  15. Press at "Cloak of Hidden Blades" in the most-left column
  16. Return back to the hub menu
  17. Press "Skill Hotbar"
  18. Assign "Cloak" skill on any available slot
  19. Run /summon mutantmonsters:mutant_creeper
  20. Press hotkey with "Cloak" spell on it
  21. Wait for mutant to hit you
  22. Usually it happens after first hit and your spell no longer creates those green particles
  23. Read log for this error about NaN

latest.log (Required)

https://mclo.gs/U6b3XwL

commented

Here is the screenshot of doHurtTarget where breakpoints check if Double.isNaN(entityIn.f_19827_.f_82480_) which is Double.isNaN(entityIn.deltaMovement.y) and apparently NaN appears exactly after push method call

Image