mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-30 07:37:31 +02:00
Change potion splash to damage event.
This commit is contained in:
parent
4a3dac0aa4
commit
c126a0ac38
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user