diff options
author | Nassim Jahnke <[email protected]> | 2024-12-03 19:05:31 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-12-03 19:05:31 +0100 |
commit | ab9a3db5ba76384531ad52299344dea588a367b2 (patch) | |
tree | 7e91be513aa8e62596b332a159691d67f79323c7 /patches/server/0204-Add-config-to-disable-ender-dragon-legacy-check.patch | |
parent | 172c7dc7e7ee96fceaa2586d9cd9d892184f9a39 (diff) | |
download | Paper-ab9a3db5ba76384531ad52299344dea588a367b2.tar.gz Paper-ab9a3db5ba76384531ad52299344dea588a367b2.zip |
More work
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.patch | 23 |
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(() -> { |