2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
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
|
2024-04-24 04:21:40 +02:00
|
|
|
index 1a56247191172622f2bde6d799bc44f70b9ce3ae..6f9c78b124a33212125e98905efc8a09a1891500 100644
|
2021-06-11 14:02:28 +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
|
|
|
@@ -106,6 +106,10 @@ public class EndDragonFight {
|
|
|
|
this.ticksSinceLastPlayerScan = 21;
|
|
|
|
this.skipArenaLoadedCheck = false;
|
|
|
|
this.needsStateScanning = true;
|
2024-01-21 19:37:09 +01:00
|
|
|
+ // Paper start - Add config to disable ender dragon legacy check
|
2022-06-09 10:51:45 +02:00
|
|
|
+ this.needsStateScanning = world.paperConfig().entities.spawning.scanForLegacyEnderDragon;
|
2021-06-12 21:30:37 +02:00
|
|
|
+ if (!this.needsStateScanning) this.dragonKilled = true;
|
2024-01-21 19:37:09 +01:00
|
|
|
+ // Paper end - Add config to disable ender dragon legacy check
|
2021-06-12 21:30:37 +02:00
|
|
|
this.level = world;
|
2023-06-07 21:54:11 +02:00
|
|
|
this.origin = origin;
|
2023-08-06 02:21:59 +02:00
|
|
|
this.validPlayer = EntitySelector.ENTITY_STILL_ALIVE.and(EntitySelector.withinDistance((double) origin.getX(), (double) (128 + origin.getY()), (double) origin.getZ(), 192.0D));
|