Powah! (Rearchitected)

Powah! (Rearchitected)

3M Downloads

Certain blocks [e.g. cables] get superfluous NBT from inventory charger and don't stack

Random832 opened this issue ยท 0 comments

commented

Version: (make sure you are on the latest version before reporting):

  • Minecraft: 1.19.2
  • Forge: 43.2.4
  • Powah: 4.0.6

This issue only occurs on Forge.

Issue description:

Charging cables (or certain other blocks like generators, energizing rods) in item form with a battery, player transmitter, or energy hopper, causes them to have an NBT tag of {powah_tile_data: {energy_stored_main_energy: 0L}}. This means they will not stack with items that do not have the tag.

This is most annoying when breaking cables, since each block you pick up will get a new inventory slot [as it does not yet have the tag], and then will have the tag added on the next tick. It also results in other symptoms such as JEI not recognizing energizing rods and generators that have been in your inventory for crafting the next tier.

Steps to reproduce:

  • Charge a battery
  • Have some cables in your inventory [battery must be inactive, and no other active inventory charger such a player transmitter]
  • Throw some of the cables on the ground
  • Activate the battery
  • Deactivate the battery
  • Pick up the cables
  • Observe that the picked up cables will not stack with the cables that were in your inventory while the battery was active)

Is this a crash?

No

Cross-reference issues

Powah for 1.16 and earlier had the same basic issue