Don't cancel potion splashes with no targets.
This commit is contained in:
parent
e2fe770e6f
commit
cf69425153
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue