fix: make sure our own damage isn't stopped by knocked invulnerability

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2024-07-22 10:41:06 +05:00
parent 7efc2d9af1
commit 6fc1e412f7
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -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;
}