9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 11:29:12 +00:00

Fix bot invulnerable

This commit is contained in:
violetc
2025-06-30 21:44:33 +08:00
parent 3187d77f57
commit df8397c794
2 changed files with 4 additions and 3 deletions

View File

@@ -130,6 +130,7 @@ public class ServerBot extends ServerPlayer {
if (this.invulnerableTime > 0) {
this.invulnerableTime--;
}
if (this.spawnInvulnerableTime > 0) --this.spawnInvulnerableTime; // Leaves - spawn invulnerable time
// copy ServerPlayer end
if (this.getConfigValue(Configs.SPAWN_PHANTOM)) {