Add allow-remote-ender-dragon-respawning setting (#12602)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user