Make lookupFluidForBlock work for flowing water and lava (#4675)

This commit is contained in:
Joseph C. Sible 2018-03-17 01:54:23 -04:00 committed by LexManos
parent 4242f89c75
commit 5ace86da12
1 changed files with 8 additions and 0 deletions

View File

@ -316,6 +316,14 @@ public abstract class FluidRegistry
}
fluidBlocks = tmp;
}
if (block == Blocks.FLOWING_WATER)
{
block = Blocks.WATER;
}
else if (block == Blocks.FLOWING_LAVA)
{
block = Blocks.LAVA;
}
return fluidBlocks.get(block);
}