mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-26 15:22:56 +08:00
Remove 'Mechanicus' entities from the list of entities
This commit is contained in:
parent
6e1617e621
commit
ebc6d9a06e
@ -79,7 +79,8 @@ export function listCommands(): Command[] {
|
|||||||
* Fetches and casts all entities in the file.
|
* Fetches and casts all entities in the file.
|
||||||
*/
|
*/
|
||||||
export function getEntities(): Entity[] {
|
export function getEntities(): Entity[] {
|
||||||
return entities.map((entry) => {
|
return entities
|
||||||
|
.map((entry) => {
|
||||||
const values = Object.values(entry) as string[];
|
const values = Object.values(entry) as string[];
|
||||||
const id = parseInt(values[0]);
|
const id = parseInt(values[0]);
|
||||||
return {
|
return {
|
||||||
@ -87,7 +88,9 @@ export function getEntities(): Entity[] {
|
|||||||
name: values[1],
|
name: values[1],
|
||||||
internal: values[2]
|
internal: values[2]
|
||||||
};
|
};
|
||||||
});
|
})
|
||||||
|
.filter((entity) =>
|
||||||
|
!entity.name.includes("Mechanicus"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user