SPIGOT-4319: Conduit damage should be a block event
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -507,6 +507,8 @@ public class CraftEventFactory {
|
||||
cause = DamageCause.CONTACT;
|
||||
} else if (source == DamageSource.HOT_FLOOR) {
|
||||
cause = DamageCause.HOT_FLOOR;
|
||||
} else if (source == DamageSource.MAGIC) {
|
||||
cause = DamageCause.MAGIC;
|
||||
} else {
|
||||
throw new IllegalStateException(String.format("Unhandled damage of %s by %s from %s", entity, damager, source.translationIndex));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user