Add travel
This commit is contained in:
parent
540319541d
commit
4ae350418b
1 changed files with 5 additions and 1 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue