Fix MC-99259 - Show wither health bar even during invulnerable stage

This commit is contained in:
William Blake Galbreath
2020-08-20 21:34:34 -05:00
parent c26df78337
commit d458e32a0c

View File

@@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Thu, 20 Aug 2020 21:32:44 -0500
Subject: [PATCH] Fix MC-99259 - Show wither health bar even during
invulnerable stage
diff --git a/src/main/java/net/minecraft/server/EntityWither.java b/src/main/java/net/minecraft/server/EntityWither.java
index 81b3b9fbc5..48ae065700 100644
--- a/src/main/java/net/minecraft/server/EntityWither.java
+++ b/src/main/java/net/minecraft/server/EntityWither.java
@@ -355,8 +355,9 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
}
// Purpur end
- this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth());
+ // this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth()); // moved down
}
+ this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth()); // Purpur - moved from above
}
public static boolean c(IBlockData iblockdata) {