fix: make sure our own damage isn't stopped by knocked invulnerability
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
7efc2d9af1
commit
6fc1e412f7
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ public class KnockdownsCommonEventListener {
|
|||
knocked.clearElytraFlying();
|
||||
|
||||
if (allPlayersKnocked(server, knocked)) {
|
||||
data.setTicksKnocked((int) (KNOCKED_INVULNERABILITY_TICKS + 1));
|
||||
knocked.attackEntityFrom(DamageSource.GENERIC, knocked.getMaxHealth());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue