Industrial Revolution

Industrial Revolution

5M Downloads

[BUG] Full energy items of different counts cannot be combined

NiChrosia opened this issue ยท 0 comments

commented

Description:

  • Give a detailed explanation of the issue

Two stacks of items full of energy cannot be combined if they have differing quantities, because a stack with 2 items has double the energy in the NBT, forcing the user to combine them in powers of 2.

Steps to Reproduce:

  • Steps to reproduce this behaviour
  1. Take 3 batteries from the creative menu.
  2. Charge them all to max one by one
  3. Combine two into a stack
  4. Attempt to add the individual item to the stack of two
  5. Observe the bug

Solution:

Mixin to the method that handles stack combination to allow combining energy items with different energy values.

Technical Information:

  • Minecraft: 1.18.1
  • Fabric API: 0.46.6
  • Industrial Revolution: 1.13.6
  • Modpack: AOF5 1.0.1