Array support for find + ResurrectHome: View Server Home Button on Server Guide (#2283)

This commit is contained in:
Nuckyz 2024-04-09 17:09:23 -03:00 committed by GitHub
parent dc4c678aa3
commit 5636f9d979
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 131 additions and 23 deletions

View file

@ -79,6 +79,8 @@ for (const p of pluginsValues) {
if (p.patches && isPluginEnabled(p.name)) {
for (const patch of p.patches) {
patch.plugin = p.name;
if (!Array.isArray(patch.find))
patch.find = [patch.find];
if (!Array.isArray(patch.replacement))
patch.replacement = [patch.replacement];
patches.push(patch);