2022-06-09 10:51:45 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mariell Hoversholm <proximyst@proximyst.com>
|
|
|
|
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
|
2023-09-10 04:28:03 +02:00
|
|
|
index 3c24c2c7dda04ba05f10c64c785f503dac9585f5..774f408b1520646dd32eb7d66e33946a7e1e72df 100644
|
2022-06-09 10:51:45 +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
|
2023-08-06 02:21:59 +02:00
|
|
|
@@ -209,7 +209,7 @@ public class EndDragonFight {
|
|
|
|
this.dragonUUID = entityenderdragon.getUUID();
|
|
|
|
EndDragonFight.LOGGER.info("Found that there's a dragon still alive ({})", entityenderdragon);
|
2022-06-09 10:51:45 +02:00
|
|
|
this.dragonKilled = false;
|
2023-08-06 02:21:59 +02:00
|
|
|
- if (!flag) {
|
|
|
|
+ if (!flag && this.level.paperConfig().entities.behavior.shouldRemoveDragon) {
|
|
|
|
EndDragonFight.LOGGER.info("But we didn't have a portal, let's remove it.");
|
|
|
|
entityenderdragon.discard();
|
2022-06-09 10:51:45 +02:00
|
|
|
this.dragonUUID = null;
|