From 4ae350418b241b78ddbc125edf6b4a0c5b85debc62ff02bde20bd3ee05d5ae89 Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 21 Jan 2026 15:50:00 -0500 Subject: [PATCH] Add travel --- src/services/game/location.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/game/location.ts b/src/services/game/location.ts index c6051ac..b601ded 100644 --- a/src/services/game/location.ts +++ b/src/services/game/location.ts @@ -9,7 +9,11 @@ import type { IPlayer } from "./structures/entities.js"; import { getSpeed } from "./entity.js"; const existsLocation = (name: string): boolean => { - return locations.find((location) => location.name === name) !== undefined; + return ( + locations.find( + (location) => location.name.toLowerCase() === name.toLowerCase(), + ) !== undefined + ); }; const getLocation = (id: Location): ILocation => {