mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix wither initAttributes call
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..81b3b9fbc5 100644
|
||||
index 1511212cbf..bbcd509d4b 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityWither.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityWither.java
|
||||
@@ -41,6 +41,16 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
@@ -49,6 +49,14 @@ index 1511212cbf..81b3b9fbc5 100644
|
||||
|
||||
this.bossBattle.setProgress(this.getHealth() / this.getMaxHealth());
|
||||
}
|
||||
@@ -354,6 +366,7 @@ public class EntityWither extends EntityMonster implements IRangedEntity {
|
||||
public void beginSpawnSequence() {
|
||||
this.setInvul(220);
|
||||
this.setHealth(this.getMaxHealth() / 3.0F);
|
||||
+ initAttributes(this.world); // Purpur - building the wither with soul_sand + wither_skeleton_skulls does not call prepare, so we need to call this manually
|
||||
}
|
||||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index d19c6d13cf..2b05ae68bc 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
|
||||
Reference in New Issue
Block a user