Add travel

This commit is contained in:
Aslan 2026-01-21 15:50:00 -05:00
parent 540319541d
commit 4ae350418b

View file

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