diff options
Diffstat (limited to 'patches/server/0426-Toggle-for-removing-existing-dragon.patch')
-rw-r--r-- | patches/server/0426-Toggle-for-removing-existing-dragon.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0426-Toggle-for-removing-existing-dragon.patch b/patches/server/0426-Toggle-for-removing-existing-dragon.patch new file mode 100644 index 0000000000..26ae1ded8a --- /dev/null +++ b/patches/server/0426-Toggle-for-removing-existing-dragon.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mariell Hoversholm <[email protected]> +Date: Wed, 30 Sep 2020 22:49:14 +0200 +Subject: [PATCH] Toggle for removing existing dragon + + +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 a12299604ea88c268db5065191d641eb7d52c3e3..d6deedb96583c19eeb27e671289c4edc8a9245b4 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 +@@ -211,7 +211,7 @@ public class EndDragonFight { + this.dragonUUID = entityenderdragon.getUUID(); + EndDragonFight.LOGGER.info("Found that there's a dragon still alive ({})", entityenderdragon); + this.dragonKilled = false; +- if (!flag) { ++ if (!flag && this.level.paperConfig().entities.behavior.shouldRemoveDragon) { // Paper - Toggle for removing existing dragon + EndDragonFight.LOGGER.info("But we didn't have a portal, let's remove it."); + entityenderdragon.discard(null); // CraftBukkit - add Bukkit remove cause + this.dragonUUID = null; |