Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Add LEFT_CLICK_BLOCK's face
Dieser Commit ist enthalten in:
Ursprung
49955d5a1d
Commit
1cbed230d6
@ -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.
|
||||
|
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren