Paper/nms-patches/EntityDamageSourceIndirect.patch

14 lines
564 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityDamageSourceIndirect.java
+++ b/net/minecraft/server/EntityDamageSourceIndirect.java
2016-05-10 13:47:39 +02:00
@@ -29,4 +29,10 @@
2018-07-15 02:00:00 +02:00
return !itemstack.isEmpty() && itemstack.hasName() ? new ChatMessage(s1, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent, itemstack.A()}) : new ChatMessage(s, new Object[] { entityliving.getScoreboardDisplayName(), ichatbasecomponent});
2015-02-26 23:41:06 +01:00
}
+
+ // CraftBukkit start
+ public Entity getProximateDamageSource() {
+ return super.getEntity();
2015-02-26 23:41:06 +01:00
+ }
+ // CraftBukkit end
}