aboutsummaryrefslogtreecommitdiffhomepage
path: root/CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch')
-rw-r--r--CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch b/CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch
new file mode 100644
index 0000000000..8c02bd73b8
--- /dev/null
+++ b/CraftBukkit-Patches/0146-Add-damager-to-the-unhandled-error.patch
@@ -0,0 +1,22 @@
+From 1f53dfee69b4631f24c8b755fe5af870cd8d4e5d Mon Sep 17 00:00:00 2001
+From: Thinkofdeath <[email protected]>
+Date: Thu, 26 Jun 2014 23:42:52 +0100
+Subject: [PATCH] Add damager to the unhandled error
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+index 0db8897..c8e3db0 100644
+--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
++++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+@@ -497,7 +497,7 @@ public class CraftEventFactory {
+ } else if (source == DamageSource.FALL) {
+ cause = DamageCause.FALL;
+ } else {
+- throw new RuntimeException("Unhandled entity damage");
++ throw new RuntimeException("Unhandled entity damage from " + damager.getHandle().getName()); // Spigot - Add damager
+ }
+ EntityDamageEvent event = callEvent(new EntityDamageByEntityEvent(damager, entity.getBukkitEntity(), cause, modifiers, modifierFunctions));
+ if (!event.isCancelled()) {
+--
+1.9.1
+