'Fix' Specific y-levels in water behaving like you're in air. Closes #5341

This commit is contained in:
LexManos committed 2019-02-06 21:43:37 -08:00
1 parent 053c5300ed
commit d930c8ae8b
1 file changed
+2 -2
@@ -53,7 +53,7 @@ public interface IForgeFluid
*/
default boolean isEntityInside(IFluidState state, IWorldReader world, BlockPos pos, Entity entity, double yToTest, Tag<Fluid> 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.