From d930c8ae8b21b1fb4afa1848175434777743720e Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 6 Feb 2019 21:43:37 -0800 Subject: [PATCH] 'Fix' Specific y-levels in water behaving like you're in air. Closes #5341 --- .../net/minecraftforge/common/extensions/IForgeFluid.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/extensions/IForgeFluid.java b/src/main/java/net/minecraftforge/common/extensions/IForgeFluid.java index 3f276412f..965d90169 100644 --- a/src/main/java/net/minecraftforge/common/extensions/IForgeFluid.java +++ b/src/main/java/net/minecraftforge/common/extensions/IForgeFluid.java @@ -53,7 +53,7 @@ public interface IForgeFluid */ default boolean isEntityInside(IFluidState state, IWorldReader world, BlockPos pos, Entity entity, double yToTest, Tag tag, boolean testingHead) { - return state.isTagged(tag) && yToTest - pos.getY() < state.getHeight() + 0.1F; + return state.isTagged(tag) && yToTest < (double)(pos.getY() + state.getHeight() + 0.11111111F); } /** @@ -99,7 +99,7 @@ public interface IForgeFluid { return state.getExplosionResistance(); } - + /** * Queries if this fluid should render in a given layer. * A custom {@link IBakedModel} can use {@link net.minecraftforge.client.MinecraftForgeClient#getRenderLayer()} to alter the model based on layer.