geforkt von Mirrors/Paper
SPIGOT-1523: Crash when flying Elytra into wall.
Dieser Commit ist enthalten in:
Ursprung
f5d92d6b12
Commit
ea28c1e478
@ -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));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren