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 committed 2015-01-29 17:11:22 -05:00
1 parent 67121d9ebc
commit 146b08a8cd
1 file changed
+1 -1
@@ -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);
}
}