summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityDamageSourceIndirect.patch
blob: 1991e18c6639c00a00154321ddae60a8668399d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ../work/decompile-8eb82bde//net/minecraft/server/EntityDamageSourceIndirect.java	2014-11-28 17:43:43.073707436 +0000
+++ src/main/java/net/minecraft/server/EntityDamageSourceIndirect.java	2014-11-28 17:38:18.000000000 +0000
@@ -24,5 +24,11 @@
         String s1 = s + ".item";
 
         return itemstack != null && itemstack.hasName() && LocaleI18n.c(s1) ? new ChatMessage(s1, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent, itemstack.C()}) : new ChatMessage(s, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent});
+    }    
+    
+    // CraftBukkit start
+    public Entity getProximateDamageSource() {
+        return super.getEntity();
     }
+    // CraftBukkit end
 }