summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-03 11:34:26 +1000
committermd_5 <git@md-5.net>2018-08-03 11:34:26 +1000
commit69970127c11e52c579cc17d4ce263a344735940a (patch)
tree15c054f8c532f462dbcb54c17f812b3fdf41f0f2 /src
parent3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c (diff)
downloadcraftbukkit-69970127c11e52c579cc17d4ce263a344735940a.tar
craftbukkit-69970127c11e52c579cc17d4ce263a344735940a.tar.gz
craftbukkit-69970127c11e52c579cc17d4ce263a344735940a.tar.lz
craftbukkit-69970127c11e52c579cc17d4ce263a344735940a.tar.xz
craftbukkit-69970127c11e52c579cc17d4ce263a344735940a.zip
SPIGOT-4221: Update surrounding blocks for cancelled break/place
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
index f5dc63f2..c48b394d 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -49,6 +49,10 @@ public class CraftBlock implements Block {
return world.getType(position);
}
+ public BlockPosition getPosition() {
+ return position;
+ }
+
public World getWorld() {
return world.getMinecraftWorld().getWorld();
}