mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-21 07:13:49 -07:00
#1337: Add DragonBattle#setPreviouslyKilled
By: DaFeist <56165444+dafeist-github@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,14 @@
|
|||||||
--- a/net/minecraft/world/level/dimension/end/EnderDragonBattle.java
|
--- a/net/minecraft/world/level/dimension/end/EnderDragonBattle.java
|
||||||
+++ b/net/minecraft/world/level/dimension/end/EnderDragonBattle.java
|
+++ b/net/minecraft/world/level/dimension/end/EnderDragonBattle.java
|
||||||
|
@@ -83,7 +83,7 @@
|
||||||
|
private int ticksSinceCrystalsScanned;
|
||||||
|
private int ticksSinceLastPlayerScan;
|
||||||
|
private boolean dragonKilled;
|
||||||
|
- private boolean previouslyKilled;
|
||||||
|
+ public boolean previouslyKilled;
|
||||||
|
private boolean skipArenaLoadedCheck;
|
||||||
|
@Nullable
|
||||||
|
public UUID dragonUUID;
|
||||||
@@ -110,14 +110,14 @@
|
@@ -110,14 +110,14 @@
|
||||||
this.origin = blockposition;
|
this.origin = blockposition;
|
||||||
this.validPlayer = IEntitySelector.ENTITY_STILL_ALIVE.and(IEntitySelector.withinDistance((double) blockposition.getX(), (double) (128 + blockposition.getY()), (double) blockposition.getZ(), 192.0D));
|
this.validPlayer = IEntitySelector.ENTITY_STILL_ALIVE.and(IEntitySelector.withinDistance((double) blockposition.getX(), (double) (128 + blockposition.getY()), (double) blockposition.getZ(), 192.0D));
|
||||||
|
@@ -62,6 +62,11 @@ public class CraftDragonBattle implements DragonBattle {
|
|||||||
return handle.hasPreviouslyKilledDragon();
|
return handle.hasPreviouslyKilledDragon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPreviouslyKilled(boolean previouslyKilled) {
|
||||||
|
handle.previouslyKilled = previouslyKilled;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initiateRespawn() {
|
public void initiateRespawn() {
|
||||||
this.handle.tryRespawn();
|
this.handle.tryRespawn();
|
||||||
|
Reference in New Issue
Block a user