Upstream merge

By: md_5 <git@md-5.net>
This commit is contained in:
Spigot
2014-05-27 17:40:02 +10:00
parent 955a0fb081
commit 23c4e709bc
10 changed files with 65 additions and 34 deletions

View File

@@ -1,14 +1,14 @@
From 05af846b96eabf3961284ab159e1f1dcd88ae1da Mon Sep 17 00:00:00 2001
From 9bc96791db6467b0721810dba820374aa6c46065 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 bae352b..52ff8e6 100644
index 7342848..5138eec 100644
--- a/src/main/java/net/minecraft/server/ItemStack.java
+++ b/src/main/java/net/minecraft/server/ItemStack.java
@@ -259,7 +259,13 @@ public final class ItemStack {
@@ -270,7 +270,13 @@ public final class ItemStack {
return this.item.getMaxDurability();
}
@@ -22,7 +22,7 @@ index bae352b..52ff8e6 100644
if (!this.g()) {
return false;
} else {
@@ -274,7 +280,16 @@ public final class ItemStack {
@@ -285,7 +291,16 @@ public final class ItemStack {
}
i -= k;
@@ -40,7 +40,7 @@ index bae352b..52ff8e6 100644
return false;
}
}
@@ -287,7 +302,7 @@ public final class ItemStack {
@@ -298,7 +313,7 @@ public final class ItemStack {
public void damage(int i, EntityLiving entityliving) {
if (!(entityliving instanceof EntityHuman) || !((EntityHuman) entityliving).abilities.canInstantlyBuild) {
if (this.g()) {