aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch')
-rw-r--r--patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch b/patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch
new file mode 100644
index 0000000000..7c711b2484
--- /dev/null
+++ b/patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch
@@ -0,0 +1,23 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+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
+index 3fa3dae36bcf66dfdc8a279d37fb60a624c1ae96..a16229f5eaa9e8320751e4fd1faf016f796d3414 100644
+--- a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
++++ b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
+@@ -117,6 +117,12 @@ public class EndDragonFight {
+ if (data.isRespawning) {
+ this.respawnStage = DragonRespawnAnimation.START;
+ }
++ // Paper start - Add config to disable ender dragon legacy check
++ if (data == EndDragonFight.Data.DEFAULT && !world.paperConfig().entities.spawning.scanForLegacyEnderDragon) {
++ this.needsStateScanning = false;
++ this.dragonKilled = true;
++ }
++ // Paper end - Add config to disable ender dragon legacy check
+
+ this.portalLocation = (BlockPos) data.exitPortalLocation.orElse(null); // CraftBukkit - decompile error
+ this.gateways.addAll((Collection) data.gateways.orElseGet(() -> {