1
0

Add frontend support for Geyser Extension plugin loader (#4735)

This commit is contained in:
Prospector
2025-11-07 11:55:16 -08:00
committed by GitHub
parent 8182b795de
commit a694aeed32
2 changed files with 6 additions and 2 deletions

View File

@@ -93,6 +93,8 @@ export interface SortType {
name: string
}
const PLUGIN_PLATFORMS = ['bungeecord', 'waterfall', 'velocity', 'geyser']
export function useSearch(
projectTypes: Ref<ProjectType[]>,
tags: Ref<Tags>,
@@ -298,7 +300,7 @@ export function useSearch(
.filter(
(loader) =>
loader.supported_project_types.includes('plugin') &&
!['bungeecord', 'waterfall', 'velocity'].includes(loader.name),
!PLUGIN_PLATFORMS.includes(loader.name),
)
.map((loader) => {
return {
@@ -324,7 +326,7 @@ export function useSearch(
supports_negative_filter: true,
searchable: false,
options: tags.value.loaders
.filter((loader) => ['bungeecord', 'waterfall', 'velocity'].includes(loader.name))
.filter((loader) => PLUGIN_PLATFORMS.includes(loader.name))
.map((loader) => {
return {
id: loader.name,

View File

@@ -191,6 +191,8 @@ export const formatCategory = (name) => {
return 'Resource Pack'
} else if (name === 'vanilla') {
return 'Vanilla Shader'
} else if (name === 'geyser') {
return 'Geyser Extension'
}
return capitalizeString(name)
}