SPIGOT-1523: Crash when flying Elytra into wall.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-03-01 11:27:13 +11:00
parent c8e3e16545
commit 9958bd4c52

View file

@ -465,7 +465,7 @@ public class CraftEventFactory {
DamageCause cause = null;
Block damager = blockDamage;
blockDamage = null;
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));