mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 10:27:44 +01:00
Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly Paper Changes: c8542f23 Fix MC-99259 Wither Boss Bar doesn't update until invulnerability period is over (#4164)
This commit is contained in:
@@ -6,7 +6,7 @@ Subject: [PATCH] Customizable WitherBoss Health and Healing
|
||||
Adds the ability to customize the health of the Wither Boss, as well as the amount that it heals, and how often in the PurpurWorldConfig.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityWither.java b/src/main/java/net/minecraft/server/EntityWither.java
|
||||
index 1511212cbf..e8f81cd109 100644
|
||||
index 29bb74e51e..d847c03c0c 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityWither.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityWither.java
|
||||
@@ -41,6 +41,15 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
@@ -46,9 +46,9 @@ index 1511212cbf..e8f81cd109 100644
|
||||
}
|
||||
+ // Purpur end
|
||||
|
||||
this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth());
|
||||
//this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth()); // Paper - Moved down
|
||||
}
|
||||
@@ -354,6 +365,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
@@ -355,6 +366,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
public void beginSpawnSequence() {
|
||||
this.setInvul(220);
|
||||
this.setHealth(this.getMaxHealth() / 3.0F);
|
||||
|
||||
Reference in New Issue
Block a user