Change potion splash to damage event.

This commit is contained in:
sk89q 2014-08-24 14:46:55 -07:00
parent 4a3dac0aa4
commit c126a0ac38

View File

@ -614,7 +614,7 @@ public void onPotionSplash(PotionSplashEvent event) {
int blocked = 0;
for (LivingEntity affected : event.getAffectedEntities()) {
if (Events.fireAndTestCancel(new UseEntityEvent(event, cause, affected))) {
if (Events.fireAndTestCancel(new DamageEntityEvent(event, cause, affected))) {
event.setIntensity(affected, 0);
blocked++;
}