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
|
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 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
|
|
|
|
@@ -0,0 +0,0 @@ public class EndDragonFight {
|
2021-06-12 21:30:37 +02:00
|
|
|
private List<EndCrystal> respawnCrystals;
|
|
|
|
|
|
|
|
public EndDragonFight(ServerLevel world, long gatewaysSeed, CompoundTag nbt) {
|
|
|
|
+ // Paper start
|
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;
|
|
|
|
+ // Paper end
|
|
|
|
this.level = world;
|
|
|
|
if (nbt.contains("NeedsStateScanning")) {
|
|
|
|
this.needsStateScanning = nbt.getBoolean("NeedsStateScanning");
|