Set the destination block the to the fluid.
In the previous code the destination block was still Air and would would
cause a crash because air doesn't have a property for LEVEL
This commit is contained in:
TechStack 2015-01-29 17:11:22 -05:00
parent 67121d9ebc
commit 146b08a8cd
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class BlockFluidClassic extends BlockFluidBase
if (meta < 0) return;
if (displaceIfPossible(world, pos))
{
world.setBlockState(pos, world.getBlockState(pos).withProperty(LEVEL, meta), 3);
world.setBlockState(pos, this.getBlockState().getBaseState().withProperty(LEVEL, meta), 3);
}
}