Skip to content

Commit

Permalink
Merge pull request #23 from Nessiesson/12.x/forge
Browse files Browse the repository at this point in the history
Fix flowing fluid texture being weird and incorrect.
  • Loading branch information
Asek3 authored Feb 28, 2024
2 parents 3d52d1a + e894090 commit 1852f9c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ public static float getFluidHeight(Fluid fluid, int meta) {
* value of zero
*/
public static int getEffectiveFlowDecay(IBlockAccess world, BlockPos pos, IBlockState thiz) {
if (world.getBlockState(pos).getMaterial() != thiz.getMaterial()) {
IBlockState state = world.getBlockState(pos);
if (state.getMaterial() != thiz.getMaterial()) {
return -1;
} else {
int decay = thiz.getValue(BlockLiquid.LEVEL);
int decay = state.getValue(BlockLiquid.LEVEL);
return decay >= 8 ? 0 : decay;
}
}
Expand Down

0 comments on commit 1852f9c

Please sign in to comment.