diff --git a/CraftBukkit-Patches/0110-Add-damager-to-the-unhandled-error.patch b/CraftBukkit-Patches/0110-Add-damager-to-the-unhandled-error.patch index 9110da1cbe..a663191e7f 100644 --- a/CraftBukkit-Patches/0110-Add-damager-to-the-unhandled-error.patch +++ b/CraftBukkit-Patches/0110-Add-damager-to-the-unhandled-error.patch @@ -1,11 +1,11 @@ -From e9abdb9e15800ccb98b33b114206deb72751d948 Mon Sep 17 00:00:00 2001 +From 0bbc7f4798cc4ff7c9329671144e8c4081650185 Mon Sep 17 00:00:00 2001 From: Thinkofdeath 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 86820c2..a10ced5 100644 +index abeab03..beee3a9 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -170,7 +170,7 @@ public class CraftEventFactory { @@ -18,7 +18,7 @@ index 86820c2..a10ced5 100644 return callPlayerInteractEvent(who, action, new BlockPosition(0, 256, 0), EnumDirection.SOUTH, itemstack); } @@ -468,7 +468,7 @@ public class CraftEventFactory { - if (source == DamageSource.CACTUS) { + if (source == DamageSource.CACTUS || source == DamageSource.j) { // PAIL: rename cause = DamageCause.CONTACT; } else { - throw new AssertionError(String.format("Unhandled damage of %s by %s from %s", entity, damager, source.translationIndex));