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

[1.21.4] Regression in the effects of modded fluids on entity movement. #1832

Closed
bconlon1 opened this issue Jan 9, 2025 · 4 comments · Fixed by #1922
Closed

[1.21.4] Regression in the effects of modded fluids on entity movement. #1832

bconlon1 opened this issue Jan 9, 2025 · 4 comments · Fixed by #1922
Labels
1.21.3 Targeted at Minecraft 1.21.3 1.21.4 Targeted at Minecraft 1.21.4 bug A bug or error regression Worked previously but doesn't anymore

Comments

@bconlon1
Copy link
Contributor

bconlon1 commented Jan 9, 2025

Minecraft Version: 1.21.4

NeoForge Version: 21.4.50-beta

Logs: N/A; Code:

Steps to Reproduce:

  1. Create and register a custom fluid that does not incorporate any custom movement effects.
  2. Jump into the fluid.
  3. Notice the player will sink to the bottom immediately and their movement will behave as if they aren't in any fluid; except they are prevented from jumping notably.
java_K9RkEHHrMs.mp4

Description of issue:
It seems like there's been a regression in custom fluid behavior between 1.21.1 and 1.21.4. I believe the difference is in that this patch code from 1.21.1 moved to the LivingEntity#travelInFluid method in 1.21.4, but a patch has not been added here to LivingEntity#travel before the new travelInFluid method is called:
Image

@bconlon1 bconlon1 added the triage Needs triaging and confirmation label Jan 9, 2025
@luxtracon
Copy link

Can confirm the same behaviour for Neo 21.3.58

@sciwhiz12 sciwhiz12 added bug A bug or error regression Worked previously but doesn't anymore 1.21.4 Targeted at Minecraft 1.21.4 and removed triage Needs triaging and confirmation labels Jan 27, 2025
@sciwhiz12
Copy link
Member

Confirmed on 21.4.76-beta, using the test fluid (new_fluid_test:test_fluid) which exhibits no custom movement property. Falling into the fluid and walking in it acts as if the fluid isn't there, but jumping is prevented.

@sciwhiz12
Copy link
Member

Oh. The test fluid does have movement behavior, but because of the missing patch that prevents travelInFluid from being called when in a custom fluid type, the game never does the fluid movement.

Re-adding the patch to LivingEntity#travel as suggested in the issue description--inserting this.isInFluidType(fluidstate) to the OR conditional for water and lava--fixes the issue, and restores the proper fluid movement.

@neoforged-releases
Copy link

🚀 This issue has been resolved in NeoForge version 21.4.77-beta, as part of #1922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.3 Targeted at Minecraft 1.21.3 1.21.4 Targeted at Minecraft 1.21.4 bug A bug or error regression Worked previously but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants