summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authordurron597 <martin.jared@gmail.com>2011-01-05 08:16:44 -0500
committerdurron597 <martin.jared@gmail.com>2011-01-05 08:16:44 -0500
commitb73e343dc18a341f3cb832b9f9b6588dbf91b053 (patch)
treedacd9abde718b455704e93929c3cce6c04590de7 /src/main/java/net/minecraft
parent0aa7b970adc4bb7026755466f1c7ef4a58e33f5f (diff)
downloadcraftbukkit-b73e343dc18a341f3cb832b9f9b6588dbf91b053.tar
craftbukkit-b73e343dc18a341f3cb832b9f9b6588dbf91b053.tar.gz
craftbukkit-b73e343dc18a341f3cb832b9f9b6588dbf91b053.tar.lz
craftbukkit-b73e343dc18a341f3cb832b9f9b6588dbf91b053.tar.xz
craftbukkit-b73e343dc18a341f3cb832b9f9b6588dbf91b053.zip
fixed bug where water wasn't flowing
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/BlockFlowing.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/BlockFlowing.java b/src/main/java/net/minecraft/server/BlockFlowing.java
index d5d7ef8f..cc1dd943 100644
--- a/src/main/java/net/minecraft/server/BlockFlowing.java
+++ b/src/main/java/net/minecraft/server/BlockFlowing.java
@@ -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++;
}