WayofTime / BloodMagic

The place where all of my mod stuffs is!
Other
295 stars 271 forks source link

fix `BloodMagicCraftedEvent.Alchemy` empty inputs #2003

Open mystchonky opened 7 months ago

mystchonky commented 7 months ago

currently the event fires with empty inputs array due to how ArrayUtils work. Using lists is also easier to understand.

ArrayUtils.add(inputs, stack.copy()) doesnt add to existing array rather returns a new one. The old implementation doesnt work because the for loop does nothing