mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-20 03:13:29 +02:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
|
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
|
||
|
index f32906729baf83d8b53d64ab750cddcc413a2927..3e1e8b42f963fab17e416760b93e7c1c0a9a7f45 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
|
||
|
@@ -217,7 +217,7 @@ public class EndDragonFight {
|
||
|
this.dragonUUID = enderDragon.getUUID();
|
||
|
LOGGER.info("Found that there's a dragon still alive ({})", (Object)enderDragon);
|
||
|
this.dragonKilled = false;
|
||
|
- if (!bl) {
|
||
|
+ if (!bl && this.level.paperConfig().entities.behavior.shouldRemoveDragon) {
|
||
|
LOGGER.info("But we didn't have a portal, let's remove it.");
|
||
|
enderDragon.discard();
|
||
|
this.dragonUUID = null;
|