SPIGOT-5293: Sponge behaviour differs from Vanilla
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -21,7 +21,16 @@
|
||||
|
||||
while (!queue.isEmpty()) {
|
||||
Tuple<BlockPosition, Integer> tuple = (Tuple) queue.poll();
|
||||
@@ -51,22 +58,24 @@
|
||||
@@ -46,27 +53,31 @@
|
||||
for (int l = 0; l < k; ++l) {
|
||||
EnumDirection enumdirection = aenumdirection[l];
|
||||
BlockPosition blockposition2 = blockposition1.shift(enumdirection);
|
||||
- IBlockData iblockdata = world.getType(blockposition2);
|
||||
- Fluid fluid = world.getFluid(blockposition2);
|
||||
+ // CraftBukkit start
|
||||
+ IBlockData iblockdata = blockList.getType(blockposition2);
|
||||
+ Fluid fluid = blockList.getFluid(blockposition2);
|
||||
+ // CraftBukkit end
|
||||
Material material = iblockdata.getMaterial();
|
||||
|
||||
if (fluid.a(TagsFluid.WATER)) {
|
||||
@@ -51,7 +60,7 @@
|
||||
++i;
|
||||
if (j < 6) {
|
||||
queue.add(new Tuple<>(blockposition2, j + 1));
|
||||
@@ -79,6 +88,39 @@
|
||||
@@ -79,6 +90,39 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user