mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Update CraftBukkit to 1.6.4
This commit is contained in:
1 parent
e20ef1f606
commit
dcb9d6a5ef
92 files changed
+730
-694
No files matched your search
@@ -261,7 +261,7 @@ public class PlayerInteractManager {
|
||||
event.setCancelled(this.gamemode.isAdventure() && !this.player.d(i, j, k));
|
||||
|
||||
// Sword + Creative mode pre-cancel
|
||||
event.setCancelled(event.isCancelled() || (this.gamemode.d() && this.player.aY() != null && this.player.aY().getItem() instanceof ItemSword));
|
||||
event.setCancelled(event.isCancelled() || (this.gamemode.d() && this.player.aZ() != null && this.player.aZ().getItem() instanceof ItemSword));
|
||||
|
||||
// Calculate default block experience
|
||||
Block nmsBlock = Block.byId[block.getTypeId()];
|
||||
@@ -311,13 +311,13 @@ public class PlayerInteractManager {
|
||||
if (this.isCreative()) {
|
||||
this.player.playerConnection.sendPacket(new Packet53BlockChange(i, j, k, this.world));
|
||||
} else {
|
||||
ItemStack itemstack = this.player.bx();
|
||||
ItemStack itemstack = this.player.by();
|
||||
boolean flag1 = this.player.a(Block.byId[l]);
|
||||
|
||||
if (itemstack != null) {
|
||||
itemstack.a(this.world, l, i, j, k, this.player);
|
||||
if (itemstack.count == 0) {
|
||||
this.player.by();
|
||||
this.player.bz();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ public class PlayerInteractManager {
|
||||
entityhuman.inventory.items[entityhuman.inventory.itemInHandIndex] = null;
|
||||
}
|
||||
|
||||
if (!entityhuman.bq()) {
|
||||
if (!entityhuman.br()) {
|
||||
((EntityPlayer) entityhuman).updateInventory(entityhuman.defaultContainer);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user