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

This commit is contained in:
LexManos 2019-02-06 21:43:37 -08:00
parent 053c5300ed
commit d930c8ae8b
1 changed files with 2 additions and 2 deletions

View File

@ -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.