Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

[Bug] Cannot hide certain items with KubeJS

aaronhowser1 opened this issue ยท 1 comments

commented

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?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others

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.

  • Yes, and I did not use any paste services other than GitHub Gists.

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

  • Yes
commented

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