migrate everything over to linuxUnfucker()
This commit is contained in:
parent
e74043472d
commit
241b80a4a0
14 changed files with 162 additions and 94 deletions
|
|
@ -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, "_");
|
||||
};
|
||||
|
||||
/**
|
||||
* Событие регистрации рецептов.
|
||||
* Срабатывает после инициализации датапаков и тегов.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue