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/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-11-09 08:59:15 +01:00
|
|
|
index 4dce401da0e0fdf985ecb90f37b92e16cf210d25..35c6978eaf25ed505f99e42a58d388c62fde8319 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-11-09 08:59:15 +01:00
|
|
|
@@ -409,4 +409,9 @@ public class PaperWorldConfig {
|
2021-06-11 14:02:28 +02:00
|
|
|
private void shieldBlockingDelay() {
|
|
|
|
shieldBlockingDelay = getInt("game-mechanics.shield-blocking-delay", 5);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean scanForLegacyEnderDragon = true;
|
|
|
|
+ private void scanForLegacyEnderDragon() {
|
|
|
|
+ scanForLegacyEnderDragon = getBoolean("game-mechanics.scan-for-legacy-ender-dragon", true);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
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
|
2021-06-12 21:30:37 +02:00
|
|
|
index 758af2c2d66073aeaee766adb672c465d2993eab..711be01abe9d47bdc9bfe8b09a2719d666b986fb 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
|
2021-06-12 21:30:37 +02:00
|
|
|
@@ -84,6 +84,10 @@ public class EndDragonFight {
|
|
|
|
private List<EndCrystal> respawnCrystals;
|
|
|
|
|
|
|
|
public EndDragonFight(ServerLevel world, long gatewaysSeed, CompoundTag nbt) {
|
|
|
|
+ // Paper start
|
|
|
|
+ this.needsStateScanning = world.paperConfig.scanForLegacyEnderDragon;
|
|
|
|
+ if (!this.needsStateScanning) this.dragonKilled = true;
|
|
|
|
+ // Paper end
|
|
|
|
this.level = world;
|
|
|
|
if (nbt.contains("NeedsStateScanning")) {
|
|
|
|
this.needsStateScanning = nbt.getBoolean("NeedsStateScanning");
|