Paper/nms-patches/EntityDamageSourceIndirect.patch

14 lines
584 B
Diff
Raw Normal View History

2015-05-25 18:37:24 +08:00
--- a/net/minecraft/server/EntityDamageSourceIndirect.java
+++ b/net/minecraft/server/EntityDamageSourceIndirect.java
2016-05-10 19:47:39 +08:00
@@ -29,4 +29,10 @@
2016-11-17 09:41:03 +08:00
return !itemstack.isEmpty() && itemstack.hasName() && LocaleI18n.c(s1) ? new ChatMessage(s1, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent, itemstack.C()}) : new ChatMessage(s, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent});
2015-02-27 06:41:06 +08:00
}
+
+ // CraftBukkit start
+ public Entity getProximateDamageSource() {
+ return super.getEntity();
2015-02-27 06:41:06 +08:00
+ }
+ // CraftBukkit end
}