Apotheosis

Apotheosis

79M Downloads

null item with KubeJS in 1.19.2

LatvianModder opened this issue ยท 1 comments

commented

ItemStack#isEmpty() check fails because somehow item has ended up being null, and through binary search it was found that it's Apotheosis after recent update.

KubeJS error log (not much useful info besides the first error line) https://gnomebot.dev/paste/1088458161356275812#L143

Rolling back to 6.1.2 works fine according to user.

KubeJS script is this, but it doesn't really matter, as the check is internal:

ServerEvents.recipes(event => {
    event.remove({output: 'minecraft:crafting_table'})
})
commented

Looks like this is the issue - it should be returning ItemStack.EMPTY

@Override
@Deprecated
public ItemStack getResultItem() {
return null;
}