migrate everything over to linuxUnfucker()

This commit is contained in:
Pyritie 2026-01-12 15:32:18 +00:00
parent e74043472d
commit 241b80a4a0
14 changed files with 162 additions and 94 deletions

View file

@ -199,6 +199,13 @@ GTCEuServerEvents.fluidVeins(event => {
registerGTCEUBedrockFluidVeins(event)
})
/** Correct recipe IDs to replace invalid characters */
function linuxUnfucker(value) {
const str = (value === undefined || value === null) ? "" : value.toString();
return str.replace(/[/:\s]/g, "_");
};
/**
* Событие регистрации рецептов.
* Срабатывает после инициализации датапаков и тегов.