Reborn Core

Reborn Core

91M Downloads

AE2 crash

Technici4n opened this issue ยท 2 comments

commented

throw new UnsupportedOperationException();

AE2 calls this function when trying to set a pattern from REI, and it crashes dedicated servers. Would it be possible to soft-fail by returning ItemStack.EMPTY instead?

commented

Update: after discussion with sharrte, you should try to return the best guess for the output, at least when there is only one output. I suggest returning the first stack. That will allow setting patterns from AE2.

commented

Update: you should include the count in the return of getPreviewStacks too. To reproduce and test all of this, install TR + REI + AE2. If everything works as intended, it should be possible to shift-click the bronze ingot alloy smelter recipe into the pattern.