Option to disable dragon egg teleporting

This commit is contained in:
William Blake Galbreath
2025-01-11 18:59:08 -08:00
committed by granny
parent ef8520ee3f
commit adcdaf66a2
3 changed files with 15 additions and 36 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/world/level/block/DragonEggBlock.java
+++ b/net/minecraft/world/level/block/DragonEggBlock.java
@@ -46,6 +_,7 @@
}
private void teleport(BlockState state, Level level, BlockPos pos) {
+ if (!level.purpurConfig.dragonEggTeleport) return; // Purpur - Option to disable dragon egg teleporting
WorldBorder worldBorder = level.getWorldBorder();
for (int i = 0; i < 1000; i++) {