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
Rain Ripples on Undergound Water #117
Comments
Can confirm, it is caused by Using
|
Thanks for the fix @lonefelidae16, didn't even know that method was a thing! Appreciate it a lot <3 |
After giving it a try, it seems hasRain doesn't work on the client, as isSkyVisible always returns false on the client for some reason |
Thank you for trying my patch!
I wonder why. I installed and tried Quilt immediately and it worked fine. My WaterFluidMixin.java is: @Unique
private static boolean shouldRipple(World world, BlockPos pos) {
if (EffectiveConfig.rainRippleDensity > 0) {
FluidState fluidState = world.getFluidState(pos);
- return fluidState.isSource() && world.isRaining() && world.getBlockState(pos.add(0, 1, 0)).isAir();
+ return fluidState.isSource() && world.hasRain(pos.up());
}
return false;
} It is important to note that it must to be specified the position of the Y-axis +1 to work, rather than entering |
Oh, i tried has rain on the POS itself, not pos.up, my bad. Alright I'll
try it out again!
Le ven. 18 nov. 2022, 12:31, lonefelidae16 ***@***.***> a
écrit :
… Thank you for trying my patch!
After giving it a try, it seems hasRain doesn't work on the client, as
isSkyVisible always returns false on the client for some reason
I wonder why. I installed and tried Quilt immediately and it worked fine.
[image: 2022-11-18_20 13 51]
<https://user-images.githubusercontent.com/74746227/202694231-276bacca-b66e-45f0-8ba1-a79780b70654.png>
My WaterFluidMixin.java is:
@unique
private static boolean shouldRipple(World world, BlockPos pos) {
if (EffectiveConfig.rainRippleDensity > 0) {
FluidState fluidState = world.getFluidState(pos);- return fluidState.isSource() && world.isRaining() && world.getBlockState(pos.add(0, 1, 0)).isAir();+ return fluidState.isSource() && world.hasRain(pos.up());
}
return false;
}
It is important to note that it must to be specified the position of the
Y-axis +1 to work, rather than entering pos directly.
—
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCL7DMAGIHYBODDEOG4B73WI5SJ3ANCNFSM6AAAAAAQM4P4IU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Fixed on latest release. |
Installation:
Expected Behaviour:
Actual Behaviour:
The text was updated successfully, but these errors were encountered: