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

View File

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