#913: Handle campfire damage with EntityDamageByBlockEvent

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2021-08-11 19:05:08 +10:00
parent 6d08059769
commit 3483bd08b3
2 changed files with 24 additions and 1 deletions

View File

@@ -898,6 +898,8 @@ public class CraftEventFactory {
cause = DamageCause.HOT_FLOOR;
} else if (source == DamageSource.MAGIC) {
cause = DamageCause.MAGIC;
} else if (source == DamageSource.IN_FIRE) {
cause = DamageCause.FIRE;
} else {
throw new IllegalStateException(String.format("Unhandled damage of %s by %s from %s", entity, damager, source.msgId));
}