Update to CraftBukkit 1.6.4

By: md_5 <md_5@live.com.au>
This commit is contained in:
Spigot
2013-09-20 11:46:45 +10:00
parent 759d56f0fb
commit d0f0d605bf
26 changed files with 129 additions and 177 deletions

View File

@@ -1,11 +1,11 @@
From 4c20b9d01de06bcba204c1e68910e9265ea8aedb Mon Sep 17 00:00:00 2001
From b9aa8fd32c77972fef5c23f0bae3cee24e821e2c Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Mon, 4 Mar 2013 18:45:52 +1100
Subject: [PATCH] PlayerItemDamageEvent
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
index 41ba8fe..e2011ea 100644
index 69f81ca..f3a6027 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -178,7 +178,13 @@ public final class ItemStack {
@@ -44,8 +44,8 @@ index 41ba8fe..e2011ea 100644
public void damage(int i, EntityLiving entityliving) {
if (!(entityliving instanceof EntityHuman) || !((EntityHuman) entityliving).abilities.canInstantlyBuild) {
if (this.g()) {
- if (this.isDamaged(i, entityliving.aC())) {
+ if (this.isDamaged(i, entityliving.aC(), entityliving)) {
- if (this.isDamaged(i, entityliving.aD())) {
+ if (this.isDamaged(i, entityliving.aD(), entityliving)) {
entityliving.a(this);
--this.count;
if (entityliving instanceof EntityHuman) {