Applied Energistics 2

Applied Energistics 2

137M Downloads

KubeJS `ServerEvents.recipes()` call breaks AE2 machine recipes on Quilt

Kneelawk opened this issue ยท 4 comments

commented

Describe the bug

Creating a script in the kubejs/server_scripts folder with the content:

ServerEvents.recipes(event => {
})

causes the charger and inscriber to become unusable and their recipes no longer appear in REI.

How to reproduce the bug

  • Add AE2 and KubeJS to an instance.
  • Create a script in the minecraft kubejs/server_scripts folder with the following content:
    ServerEvents.recipes(event => {
    })
  • Load up a world and place down a charger and a creative energy cell, connected.
  • Attempt to insert a certus quartz crystal into the charger.
  • The charger refuses to accept the certus quartz crystal item.
  • Additionally, the charged certus quartz and processor recipes are no longer available in REI.

Expected behavior

The charger should accept the certus quartz item and the charged certus quartz and processor recipes should remain visible in REI.

Additional details

This has been tested on QuiltLoader. When testing on FabricLoader, this issue did not appear. It is possible this is an issue in QSL.

Which minecraft version are you using?

1.20

On which mod loaders does it happen?

Quilt

Crash log

https://mclo.gs/JEGO493

commented

Upon further inspection, the ae2:charger recipe type appears to get removed completely.

commented

This has been tested on QuiltLoader. When testing on FabricLoader, this issue did not appear. It is possible this is an issue in QSL.

We don't support quilt, sorry.

commented

Thankfully, I was able to find a workaround by manually registering all of AE2's recipe serializers with KubeJS.

commented

Looks like this isn't even an AE2 issue, as I'm running into it with other mods too.