neoforged / NeoForge

Neo Modding API for Minecraft, based on Forge
https://projects.neoforged.net/neoforged/neoforge
Other
1.18k stars 173 forks source link

Entities pushed by lava move more quickly than in vanilla #1575

Open 2No2Name opened 1 week ago

2No2Name commented 1 week ago

Minecraft Version: 1.21.1

NeoForge Version: 21.1.65

Logs: Probably not helpful here

Steps to Reproduce:

  1. Create new void world and build this above the starting platform (Command block behind button: summon wither_skeleton ~ ~-3 ~ , other command blocks: time query gametime) Do not spawn the wither skeleton by hand. image
  2. Press the button
  3. Wait until the skeleton reaches the pressure plate. Calculate the difference between the times printed in the time query gametime command blocks. Kill the wither skeleton.
  4. Repeat this a few times to convince yourself that you keep measuring the same time difference
  5. Notice that if you perform steps 1-4 in vanilla, the time difference you are getting is 508 ticks. However, with neoforge it is 465 ticks.

Description of issue: The wither skeleton moves faster in lava when the neoforge mod loader is used. No mods are installed.

2No2Name commented 1 week ago

Code investigation shows that neoforge processes lava fluid pushing whenever vanilla only performs water pushing (e.g. when a mob lands on ground).

embeddedt commented 4 days ago

Thanks for the code analysis.