diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftTravelAgent.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftTravelAgent.java index b21714e5f2..3a313e5349 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftTravelAgent.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftTravelAgent.java @@ -9,12 +9,17 @@ import org.bukkit.TravelAgent; public class CraftTravelAgent extends PortalTravelAgent implements TravelAgent { + public static TravelAgent DEFAULT = null; + private int searchRadius = 128; private int creationRadius = 16; private boolean canCreatePortal = true; public CraftTravelAgent(WorldServer worldserver) { super(worldserver); + if (DEFAULT == null && worldserver.dimension == 0) { + DEFAULT = (TravelAgent) worldserver.s(); + } } public Location findOrCreate(Location target) {