Update to 1.5.1
By: Benjamin James Harrison-Sims <tehrainbowguy@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 64d764df1534b32be328af8a409620fe18575522 Mon Sep 17 00:00:00 2001
|
||||
From 65ffb309f825299f03ec5feabb5bf617ba1035da 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
|
||||
@@ -8,10 +8,10 @@ Subject: [PATCH] PlayerItemDamageEvent
|
||||
1 file changed, 17 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
index 389558c..70d9160 100644
|
||||
index 68e481c..de7e7ac 100644
|
||||
--- a/src/main/java/net/minecraft/server/ItemStack.java
|
||||
+++ b/src/main/java/net/minecraft/server/ItemStack.java
|
||||
@@ -176,7 +176,13 @@ public final class ItemStack {
|
||||
@@ -178,7 +178,13 @@ public final class ItemStack {
|
||||
return Item.byId[this.id].getMaxDurability();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ index 389558c..70d9160 100644
|
||||
if (!this.g()) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -191,7 +197,16 @@ public final class ItemStack {
|
||||
@@ -193,7 +199,16 @@ public final class ItemStack {
|
||||
}
|
||||
|
||||
i -= k;
|
||||
@@ -43,7 +43,7 @@ index 389558c..70d9160 100644
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -204,7 +219,7 @@ public final class ItemStack {
|
||||
@@ -206,7 +221,7 @@ public final class ItemStack {
|
||||
public void damage(int i, EntityLiving entityliving) {
|
||||
if (!(entityliving instanceof EntityHuman) || !((EntityHuman) entityliving).abilities.canInstantlyBuild) {
|
||||
if (this.g()) {
|
||||
@@ -53,5 +53,5 @@ index 389558c..70d9160 100644
|
||||
if (entityliving instanceof EntityHuman) {
|
||||
((EntityHuman) entityliving).a(StatisticList.F[this.id], 1);
|
||||
--
|
||||
1.8.1-rc2
|
||||
1.8.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user