mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
SPIGOT-1523: Crash when flying Elytra into wall.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c8e3e16545
commit
9958bd4c52
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ public class CraftEventFactory {
|
||||||
DamageCause cause = null;
|
DamageCause cause = null;
|
||||||
Block damager = blockDamage;
|
Block damager = blockDamage;
|
||||||
blockDamage = null;
|
blockDamage = null;
|
||||||
if (source == DamageSource.CACTUS) {
|
if (source == DamageSource.CACTUS || source == DamageSource.j) { // PAIL: rename
|
||||||
cause = DamageCause.CONTACT;
|
cause = DamageCause.CONTACT;
|
||||||
} else {
|
} else {
|
||||||
throw new AssertionError(String.format("Unhandled damage of %s by %s from %s", entity, damager, source.translationIndex));
|
throw new AssertionError(String.format("Unhandled damage of %s by %s from %s", entity, damager, source.translationIndex));
|
||||||
|
|
Loading…
Add table
Reference in a new issue