mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
'Fix' Specific y-levels in water behaving like you're in air. Closes #5341
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user