mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-28 10:12:15 +01:00
Don't cancel potion splashes with no targets.
This commit is contained in:
parent
e2fe770e6f
commit
cf69425153
@ -1047,7 +1047,7 @@ public void onPotionSplash(PotionSplashEvent event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blocked == affectedSize) { // server does weird things with this if the event is modified, so use cached number
|
if (affectedSize > 0 && blocked == affectedSize) { // server does weird things with this if the event is modified, so use cached number
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user