2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Fri, 22 Jun 2018 10:38:31 -0500
|
|
|
|
Subject: [PATCH] Add config to disable ender dragon legacy check
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
2024-08-16 21:45:07 +02:00
|
|
|
index 1a56247191172622f2bde6d799bc44f70b9ce3ae..93337fd026fefb76c8a288674fed05cb3c1eca38 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
|
2024-08-16 21:45:07 +02:00
|
|
|
@@ -116,6 +116,12 @@ public class EndDragonFight {
|
|
|
|
if (data.isRespawning) {
|
|
|
|
this.respawnStage = DragonRespawnAnimation.START;
|
|
|
|
}
|
2024-01-21 19:37:09 +01:00
|
|
|
+ // Paper start - Add config to disable ender dragon legacy check
|
2024-08-16 21:45:07 +02:00
|
|
|
+ if (data == EndDragonFight.Data.DEFAULT && !world.paperConfig().entities.spawning.scanForLegacyEnderDragon) {
|
|
|
|
+ this.needsStateScanning = false;
|
|
|
|
+ this.dragonKilled = true;
|
|
|
|
+ }
|
2024-01-21 19:37:09 +01:00
|
|
|
+ // Paper end - Add config to disable ender dragon legacy check
|
2024-08-16 21:45:07 +02:00
|
|
|
|
|
|
|
this.portalLocation = (BlockPos) data.exitPortalLocation.orElse(null); // CraftBukkit - decompile error
|
|
|
|
this.gateways.addAll((Collection) data.gateways.orElseGet(() -> {
|