@@ -1,11 +1,11 @@
|
||||
From c008928d367fc3c4717cf6f66eb2c0a86396fb03 Mon Sep 17 00:00:00 2001
|
||||
From 49745f38fc434eae538b673b41be1fdc6683f990 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 f42f162..3a3fc27 100644
|
||||
index 41ba8fe..e2011ea 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 f42f162..3a3fc27 100644
|
||||
public void damage(int i, EntityLiving entityliving) {
|
||||
if (!(entityliving instanceof EntityHuman) || !((EntityHuman) entityliving).abilities.canInstantlyBuild) {
|
||||
if (this.g()) {
|
||||
- if (this.isDamaged(i, entityliving.aB())) {
|
||||
+ if (this.isDamaged(i, entityliving.aB(), entityliving)) {
|
||||
- if (this.isDamaged(i, entityliving.aC())) {
|
||||
+ if (this.isDamaged(i, entityliving.aC(), entityliving)) {
|
||||
entityliving.a(this);
|
||||
--this.count;
|
||||
if (entityliving instanceof EntityHuman) {
|
||||
|
||||
Reference in New Issue
Block a user