Removing tags by RegExp not working
PssbleTrngle opened this issue ยท 3 comments
onEvent('item.tags', e => {
e.remove('forge:ingots/copper', 'thermal:copper_ingot') // works
e.remove('forge:ingots/copper', /thermal:copper_ingot/) // does not do anything
e.remove('forge:ingots/copper', [/thermal:copper_ingot/]) // does also not do anything
})
Environment
Minecraft: 1.16.5
Forge: 36.1.16
Rhino: 1605.1.1-build.21
Architectury: 1.20.28
Can confirm this is still a problem in:
KJS: kubejs-forge-1605.3.19-build.180
Architectury: architectury-1.24.35-forge
Rhino: rhino-forge-1605.1.5-build.75
onEvent('item.tags', e => {
settings.logSkippedRecipes = true
console.log('Remove copper')
e.remove('forge:ingots/copper', /thermal:copper_ingot/) //Does not remove tag from item, /thermal:copper_ingot/ didn't contain tag forge:ingots/copper, skipped
e.remove('forge:ingots/copper', [/thermal:copper_ingot/]) //Does not remove tag from item, /thermal:copper_ingot/ didn't contain tag forge:ingots/copper, skipped
e.remove('forge:ingots/copper', '/thermal:copper_ingot/') //Does not remove tag from item, /thermal:copper_ingot/ didn't contain tag forge:ingots/copper, skipped
e.remove('forge:ingots/copper', Item.of(/thermal:copper_ingot/).id) //Properly removes tag from item
e.remove('forge:ingots/copper', 'thermal:copper_ingot') //Properly removes tag from item
})