mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 09:27:45 +01:00
fixed bug where water wasn't flowing
This commit is contained in:
parent
0aa7b970ad
commit
b73e343dc1
@ -113,13 +113,14 @@ public class BlockFlowing extends BlockFluids {
|
||||
}
|
||||
// Craftbukkit all four cardinal directions. Do not change the order!
|
||||
BlockFace[] faces = new BlockFace[]{ BlockFace.North, BlockFace.South, BlockFace.East, BlockFace.West };
|
||||
int index = 0;
|
||||
for (BlockFace currentFace : faces) {
|
||||
int index = 0;
|
||||
if (aflag[index]) {
|
||||
BlockFromToEvent event = new BlockFromToEvent(Type.BLOCK_FLOW, source, currentFace);
|
||||
((WorldServer) world).getServer().getPluginManager().callEvent(event);
|
||||
if (!event.isCancelled())
|
||||
if (!event.isCancelled()) {
|
||||
f(world, i1 + currentFace.getModX(), j1, k1 + currentFace.getModZ(), k2);
|
||||
}
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user