summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2014-01-30 22:37:06 -0500
committerNate Mortensen <nate.richard.mortensen@gmail.com>2014-01-30 21:47:44 -0700
commit99072710711c6ca72f5c9ad6bd211dc73a294b3e (patch)
tree9ee9caba2517c3a9e605175c0fdd4ce923958fa2 /src
parente0da846352e330180fea65721ade847d7422ddca (diff)
downloadcraftbukkit-99072710711c6ca72f5c9ad6bd211dc73a294b3e.tar
craftbukkit-99072710711c6ca72f5c9ad6bd211dc73a294b3e.tar.gz
craftbukkit-99072710711c6ca72f5c9ad6bd211dc73a294b3e.tar.lz
craftbukkit-99072710711c6ca72f5c9ad6bd211dc73a294b3e.tar.xz
craftbukkit-99072710711c6ca72f5c9ad6bd211dc73a294b3e.zip
[Bleeding] Store correct block type when hitting blocks. Fixes BUKKIT-5209
The block obtained and stored within the block object higher up does not reflect the block at the location being hit, rather it is the air block the arrow was previously in. Thusly when the variable is used to check if the arrow is still in the block, it fails.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityArrow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java
index 51c3173f..5887ee8f 100644
--- a/src/main/java/net/minecraft/server/EntityArrow.java
+++ b/src/main/java/net/minecraft/server/EntityArrow.java
@@ -280,7 +280,7 @@ public class EntityArrow extends Entity implements IProjectile {
this.d = movingobjectposition.b;
this.e = movingobjectposition.c;
this.f = movingobjectposition.d;
- this.g = block;
+ this.g = this.world.getType(d, e, f); // CraftBukkit - Get correct block for storage
this.h = this.world.getData(this.d, this.e, this.f);
this.motX = (double) ((float) (movingobjectposition.pos.c - this.locX));
this.motY = (double) ((float) (movingobjectposition.pos.d - this.locY));