Add allow-remote-ender-dragon-respawning setting (#12602)

This commit is contained in:
Strokkur24
2025-08-17 13:49:30 +02:00
committed by GitHub
parent b200237c7d
commit 47f983f430
2 changed files with 2 additions and 1 deletions
@@ -142,7 +142,7 @@
blockPos = this.portalLocation;
}
+ // Paper start - Perf: Do crystal-portal proximity check before entity lookup
+ if (placedEndCrystalPos != null) {
+ if (placedEndCrystalPos != null && !level.paperConfig().misc.allowRemoteEnderDragonRespawning) {
+ // The end crystal must be 0 or 1 higher than the portal origin
+ int dy = placedEndCrystalPos.getY() - blockPos.getY();
+ if (dy != 0 && dy != 1) {
@@ -574,6 +574,7 @@ public class WorldConfiguration extends ConfigurationPart {
public int shieldBlockingDelay = 5;
public boolean disableRelativeProjectileVelocity = false;
public boolean legacyEnderPearlBehavior = false;
public boolean allowRemoteEnderDragonRespawning = false;
public enum RedstoneImplementation {
VANILLA, EIGENCRAFT, ALTERNATE_CURRENT