shedaniel / RoughlyEnoughItems

Clean and Configurable. Your recipe viewer mod for 1.13+.
Other
326 stars 65 forks source link

[Bug] Cannot hide certain items with KubeJS #1363

Open aaronhowser1 opened 1 year ago

aaronhowser1 commented 1 year ago

What happened?

I have this in my startup scripts:

global.itemsToRemove = [
    /prefab.*swift/,
    /prefab.*sickle/,
    /thermal.*device/,
    /thermal.*cell/,
    /thermal.*grenade/,
    /thermal.*tnt/
]
``` and then this in my client scripts:
```js
REIEvents.hide('item', event => {
    global.itemsToRemove.forEach(item => {
        event.hide(item)
    })

    event.hide('thermal:device_hive_extractor')
})

Prefab's items are hidden as expected, but Thermal's are not.

image Even when not using globals or arrays or whatever, it still doesn't hide them.

This might be due to how Thermal registers its items. I only have Thermal Foundation and Thermal Dynamics.

image I don't want to see this stuff, since they aren't actually enabled without Thermal Expansion.

What mod loaders are you seeing the problem on?

Forge

What do you think this bug is of?

Relevant log output

https://gist.github.com/57602615c9e3866e48b9bbe92b8c2eba
https://gist.github.com/3519e719b238da0b426dc780d260f196

Anything else?

No response

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.

shedaniel commented 1 year ago

Are you able to hide them using the REI manual filtering, if so please report this to KubeJS