diff options
author | Lulu13022002 <[email protected]> | 2024-08-16 22:59:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-16 13:59:46 -0700 |
commit | 78216fef26e454c78dff5e495f6ebe673be56900 (patch) | |
tree | 88ec1bb051d2785ac0e4fef4a9f5cfcc62fd18ff | |
parent | e619744fbdc4963eed0b04c1e44bd1089ce50285 (diff) | |
download | Paper-78216fef26e454c78dff5e495f6ebe673be56900.tar.gz Paper-78216fef26e454c78dff5e495f6ebe673be56900.zip |
Re-implement portalCreateRadius world config (#11267)
-rw-r--r-- | patches/server/0060-Add-configurable-portal-search-radius.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0060-Add-configurable-portal-search-radius.patch b/patches/server/0060-Add-configurable-portal-search-radius.patch index 4a5099223d..9ba19afb3e 100644 --- a/patches/server/0060-Add-configurable-portal-search-radius.patch +++ b/patches/server/0060-Add-configurable-portal-search-radius.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add configurable portal search radius diff --git a/src/main/java/net/minecraft/world/level/block/NetherPortalBlock.java b/src/main/java/net/minecraft/world/level/block/NetherPortalBlock.java -index 462afb22cce2376789e44283032e63a6264cf851..19c813ab9e71eed150ae569f903287e9283d9292 100644 +index 462afb22cce2376789e44283032e63a6264cf851..8072e67f7b2f5944670159d3de1b01090bd1019d 100644 --- a/src/main/java/net/minecraft/world/level/block/NetherPortalBlock.java +++ b/src/main/java/net/minecraft/world/level/block/NetherPortalBlock.java @@ -139,8 +139,14 @@ public class NetherPortalBlock extends Block implements Portal { @@ -20,7 +20,7 @@ index 462afb22cce2376789e44283032e63a6264cf851..19c813ab9e71eed150ae569f903287e9 + // Paper end - Configurable portal search radius // CraftBukkit start - CraftPortalEvent event = entity.callPortalEvent(entity, CraftLocation.toBukkit(blockposition1, worldserver1.getWorld()), PlayerTeleportEvent.TeleportCause.NETHER_PORTAL, flag ? 16 : 128, 16); -+ CraftPortalEvent event = entity.callPortalEvent(entity, CraftLocation.toBukkit(blockposition1, worldserver1.getWorld()), PlayerTeleportEvent.TeleportCause.NETHER_PORTAL, portalSearchRadius, 16); // Paper - use custom portal search radius ++ CraftPortalEvent event = entity.callPortalEvent(entity, CraftLocation.toBukkit(blockposition1, worldserver1.getWorld()), PlayerTeleportEvent.TeleportCause.NETHER_PORTAL, portalSearchRadius, worldserver1.paperConfig().environment.portalCreateRadius); // Paper - use custom portal search radius if (event == null) { return null; } |