Skip to content

Commit

Permalink
fix water pushing force is large #709
Browse files Browse the repository at this point in the history
  • Loading branch information
MoePus committed Oct 2, 2024
1 parent a81efdf commit c9922ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public abstract class MixinEntity {
@Inject(
at = @At("HEAD"),
method = "updateFluidHeightAndDoFluidPushing()V",
remap = false
remap = false,
cancellable = true
)
// Overwrite the forge method, since it's written in a way that's really hard to precisely mixin into.
private void afterFluidStateUpdate(final CallbackInfo callbackInfo) {
Expand Down Expand Up @@ -131,6 +132,7 @@ private void afterFluidStateUpdate(final CallbackInfo callbackInfo) {
this.setFluidTypeHeight((FluidType) fluidType, (Double) interim.getLeft());
});
});
callbackInfo.cancel();
}

@WrapOperation(
Expand Down

0 comments on commit c9922ae

Please sign in to comment.