mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 19:12:22 +01:00
Moved the source block definition higher in BlockFlowing to ensure its accuracy.
This commit is contained in:
parent
9e65c243e4
commit
807de6ee22
1 changed files with 7 additions and 3 deletions
|
@ -31,6 +31,11 @@ public class BlockFlowing extends BlockFluids {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(World world, int i1, int j1, int k1, Random random) {
|
public void a(World world, int i1, int j1, int k1, Random random) {
|
||||||
|
// CraftBukkit start
|
||||||
|
// skedit: Moved up to make sure that it is accurate
|
||||||
|
CraftBlock source = (CraftBlock) ((WorldServer) world).getWorld().getBlockAt(i1, j1, k1);
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
int l1 = g(world, i1, j1, k1);
|
int l1 = g(world, i1, j1, k1);
|
||||||
byte byte0 = 1;
|
byte byte0 = 1;
|
||||||
|
|
||||||
|
@ -88,9 +93,8 @@ public class BlockFlowing extends BlockFluids {
|
||||||
i(world, i1, j1, k1);
|
i(world, i1, j1, k1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CraftBukkit start
|
|
||||||
CraftBlock source = (CraftBlock) ((WorldServer) world).getWorld().getBlockAt(i1, j1, k1);
|
|
||||||
if (l(world, i1, j1 - 1, k1)) {
|
if (l(world, i1, j1 - 1, k1)) {
|
||||||
|
// CraftBukkit start
|
||||||
// Craftbucket send "down" to the server
|
// Craftbucket send "down" to the server
|
||||||
BlockFromToEvent blockFlow = new BlockFromToEvent(Type.BLOCK_FLOW, source, BlockFace.DOWN);
|
BlockFromToEvent blockFlow = new BlockFromToEvent(Type.BLOCK_FLOW, source, BlockFace.DOWN);
|
||||||
((WorldServer) world).getServer().getPluginManager().callEvent(blockFlow);
|
((WorldServer) world).getServer().getPluginManager().callEvent(blockFlow);
|
||||||
|
|
Loading…
Reference in a new issue