Open SplendidAlakey opened 1 year ago
This is weird. The REI log says the group does exist, but its very clearly not grouping. Advanced Tooltips has one mixin into the spawn egg item class that adds the image of the mob, which i wouldnt think affects it...
It also seems to do weird stuff to tipped arrows (which it also mixins to for the same purpose, and notably has a weird rei hackaround in there)
This is grouping by the regex
/arrow/
. Only regular, glowing and poison are actually grouped.
Disabling that mixin fixes the issue. Makes me thing it might be an issue with REI not handling those special image tooltips properly.
Workaround for now:
REIEvents.groupEntries((event) => {
const $VanillaEntryTypes = Java.loadClass('me.shedaniel.rei.api.common.entry.type.VanillaEntryTypes') // This cannot be initialized outside of the event due to REI being weird and relying on class loading order.
event.registry.group("kubejs:rei_groups/spawn_eggs", "Spawn Eggs", $VanillaEntryTypes.ITEM, item => item.value.id.contains('spawn_egg'))
})
It is a lot uglier than I thought it would be. This is mainly caused by #703, and isn't helped by rhino thinking an ArrowFunction is a List not a Predicate
Minecraft Version
1.19.2
KubeJS Version
1902.6.0-build.142
Rhino Version
1902.2.2-build.268
Architectury Version
6.5.85
Forge/Fabric Version
Quilt 0.18.10 or Fabric 0.14.21
Describe your issue
I'm unable to group spawn eggs together in REI, if Inspecio is installed. Could be affecting other items, but I can only confirm the issue to be present with the eggs.
kubejs/client_scripts
:REIEvents.groupEntries((event) => {
// Group spawn eggs together
});