'Fix' Specific y-levels in water behaving like you're in air. Closes #5341
This commit is contained in:
parent
053c5300ed
commit
d930c8ae8b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
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();
|
return state.getExplosionResistance();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Queries if this fluid should render in a given layer.
|
* 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.
|
* A custom {@link IBakedModel} can use {@link net.minecraftforge.client.MinecraftForgeClient#getRenderLayer()} to alter the model based on layer.
|
||||||
|
|
Loading…
Reference in a new issue