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 => {