Don't cancel potion splashes with no targets.

This commit is contained in:
wizjany 2022-03-03 07:59:00 -05:00 committed by GitHub
parent e2fe770e6f
commit cf69425153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1047,7 +1047,7 @@ public class EventAbstractionListener extends AbstractListener {
}
}
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);
}
}