From fea644f6d2289f4468b50689c5397e251eb28135 Mon Sep 17 00:00:00 2001 From: LexManos Date: Sat, 19 Sep 2026 14:02:21 -0700 Subject: [PATCH] Fix players not drowning propely --- .../world/entity/EntityFluidInteraction.java.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch b/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch index c04a4846e0..d310bc11f4 100644 --- a/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/EntityFluidInteraction.java.patch @@ -52,7 +52,7 @@ BlockGetter level = entity.level(); BlockPos.MutableBlockPos mutablePos = new BlockPos.MutableBlockPos(); -@@ -68,17 +_,22 @@ +@@ -68,22 +_,28 @@ mutablePos.set(x, y, z); FluidState fluidState = level.getFluidState(mutablePos); if (!fluidState.isEmpty()) { @@ -77,6 +77,12 @@ if (x == eyeBlockX && z == eyeBlockZ && eyeY >= fluidBottom) { double fluidTopForCamera = fluidBottom + fluidState.getHeightForCamera(level, mutablePos); + if (eyeY <= fluidTopForCamera) { + tracker.eyesInside = true; ++ this.eyeFluid = lastFluidType.get().getFluidType(); + } + } + @@ -97,6 +_,7 @@ current.accumulate(flow);