13
0
geforkt von Mirrors/Paper

Fix scanForLegacyEnderDragon world config (#11262)

Dieser Commit ist enthalten in:
Lulu13022002 2024-08-16 21:45:07 +02:00
Ursprung f2ebf08911
Commit 42dae8d83e

Datei anzeigen

@ -9,13 +9,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java --- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
+++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java +++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
@@ -0,0 +0,0 @@ public class EndDragonFight { @@ -0,0 +0,0 @@ public class EndDragonFight {
this.ticksSinceLastPlayerScan = 21; if (data.isRespawning) {
this.skipArenaLoadedCheck = false; this.respawnStage = DragonRespawnAnimation.START;
this.needsStateScanning = true; }
+ // Paper start - Add config to disable ender dragon legacy check + // Paper start - Add config to disable ender dragon legacy check
+ this.needsStateScanning = world.paperConfig().entities.spawning.scanForLegacyEnderDragon; + if (data == EndDragonFight.Data.DEFAULT && !world.paperConfig().entities.spawning.scanForLegacyEnderDragon) {
+ if (!this.needsStateScanning) this.dragonKilled = true; + this.needsStateScanning = false;
+ this.dragonKilled = true;
+ }
+ // Paper end - Add config to disable ender dragon legacy check + // Paper end - Add config to disable ender dragon legacy check
this.level = world;
this.origin = origin; this.portalLocation = (BlockPos) data.exitPortalLocation.orElse(null); // CraftBukkit - decompile error
this.validPlayer = EntitySelector.ENTITY_STILL_ALIVE.and(EntitySelector.withinDistance((double) origin.getX(), (double) (128 + origin.getY()), (double) origin.getZ(), 192.0D)); this.gateways.addAll((Collection) data.gateways.orElseGet(() -> {