KubeJS

KubeJS

61M Downloads

REI groupItemsIf does not work.

ChiefArug opened this issue ยท 1 comments

commented

Minecraft Version

1.19.2

KubeJS Version

kubejs-fabric-1902.6.2-build.15.jar

Rhino Version

rhino-fabric-1902.2.2-build.272.jar

Architectury Version

architectury-6.5.85-fabric.jar

Forge/Fabric Version

Fabric - 0.14.9

Describe your issue

REIEvents.groupEntries((event) => {
//	event.groupItems("kubejs:rei_groups/spawn_eggs", "Spawn Eggs", [
//		'/spawn_egg/'
//	]);	
	event.groupItemsIf("kubejs:rei_groups/spawn_eggs", "Spawn Eggs", item => {
		console.log(item.id)
		console.log(item)
		null.errorIn()
		return true;
	});
	Utils.server.tell("event fired")
});

null.errorIn() is never called. (Tested by attaching a debugger and breakpointing for ECMAExceptions. It never hits.)
Neither of the console.logs log anything either.

And of course nothing changes in REI. Other grouping stuff works (aside from the problems mentioned in #633 which I am currently testing)

Crash report/logs

No response

commented

Ah, this is probably caused by #660 given groupItemsIf uses Ingredient, not Predicate.