Don't throw internal DamageEntityEvents for unknown cause entity combusts.

Fixes WORLDGUARD-3277.
This commit is contained in:
sk89q 2015-01-08 00:32:57 -08:00
parent 53132ce83a
commit 9a569d7ed8

View File

@ -635,9 +635,6 @@ public void onEntityCombust(EntityCombustEvent event) {
} else if (event instanceof EntityCombustByEntityEvent) {
Events.fireToCancel(event, new DamageEntityEvent(event, create(((EntityCombustByEntityEvent) event).getCombuster()), event.getEntity()));
} else {
Events.fireToCancel(event, new DamageEntityEvent(event, Cause.unknown(), event.getEntity()));
}
}