mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Closes #1552
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:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user