mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
SPIGOT-1523: Crash when flying Elytra into wall.
This commit is contained in:
parent
f5d92d6b12
commit
ea28c1e478
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue