diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-26 09:56:16 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-26 09:56:24 +0100 |
commit | 1cbed230d642e439f844408fb826c538534ef895 (patch) | |
tree | ab11a83e6496ab22e778b4cc37a4b2eb47884e48 /src/main/java/net | |
parent | 49955d5a1d5e4fb5a413219e4f893da919116977 (diff) | |
download | craftbukkit-1cbed230d642e439f844408fb826c538534ef895.tar craftbukkit-1cbed230d642e439f844408fb826c538534ef895.tar.gz craftbukkit-1cbed230d642e439f844408fb826c538534ef895.tar.lz craftbukkit-1cbed230d642e439f844408fb826c538534ef895.tar.xz craftbukkit-1cbed230d642e439f844408fb826c538534ef895.zip |
Add LEFT_CLICK_BLOCK's face
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemInWorldManager.java | 5 | ||||
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ItemInWorldManager.java b/src/main/java/net/minecraft/server/ItemInWorldManager.java index 14c0b379..23a926f1 100644 --- a/src/main/java/net/minecraft/server/ItemInWorldManager.java +++ b/src/main/java/net/minecraft/server/ItemInWorldManager.java @@ -52,7 +52,8 @@ public class ItemInWorldManager { } } - public void a(int i, int j, int k) { + // CraftBukkit added face + public void a(int i, int j, int k, int face) { this.d = this.j; int l = this.b.getTypeId(i, j, k); @@ -62,7 +63,7 @@ public class ItemInWorldManager { return; } - PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(this.a, Action.LEFT_CLICK_BLOCK , i, j, k, -1, this.a.inventory.b()); + PlayerInteractEvent event = CraftEventFactory.callPlayerInteractEvent(this.a, Action.LEFT_CLICK_BLOCK , i, j, k, face, this.a.inventory.b()); if (event.useInteractedBlock() == Event.Result.DENY) { // If we denied a door from opening, we need to send a correcting update to the client, as it already opened the door. diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index fd17fd30..1ea515cc 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -351,7 +351,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener { if (packet14blockdig.e == 0) { // CraftBukkit if (i1 > this.d.spawnProtection || flag) { - this.e.c.a(i, j, k); + // CraftBukkit add face argument + this.e.c.a(i, j, k, packet14blockdig.d); } } else if (packet14blockdig.e == 2) { this.e.c.b(i, j, k); |