TwelveIterationMods / CraftingTweaks

Minecraft Mod. Allows you to rotate or clear the crafting matrix by the press of a button, in any crafting window.
https://mods.twelveiterations.com/mc/crafting-tweaks/
Other
31 stars 23 forks source link

Decompress/compress dupe #230

Open DeadShadowGH opened 3 days ago

DeadShadowGH commented 3 days ago

Security Notice

Minecraft Version

1.21.1

Mod Loader

NeoForge

Mod Loader Version

21.1.72

Mod Version

21.1.2

Balm Version

21.0.20

Describe the Issue

With an empty inventory, having 4 full stacks of any reversible 3x3 item (for example, 4 stacks of iron ingots) allows a leftover duplication bug (4 stacks of iron leaves 8 nuggets when compressing nuggets to stacks)

  1. Acquire 4 stacks of any item with a reversible 3x3 recipe
  2. In survival, use Decompress All, some of the original items will be leftover
  3. Use "Compress All" to turn the new item (i.e. nuggets) back into its compressed form (i.e. ingots)
  4. All 4 stacks will be full again, with 8 nuggets leftover.

All of this was done in a crafting table.

Found in ATM9, decided to try with the latest version with no other mods (other than JEI). Likely works on every version of Crafting Tweaks. Clearly not the most efficient method of duplication but this can be a massive issue when combined with other mods with difficult-to-acquire items, or Compressium. Seems to work with any 3x3 recipe, couldn't get it to work with 2x2

Logs

latest.log

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge or Arclight)?

No response

DeadShadowGH commented 2 days ago

It clicked with me after posting this that it applies to all forms of decompressing and compressing. It seems to be dependent on the inventory slots available. For example, if your inventory is mostly full with 8 slots available, and a stack of resources in one -- decompressing the stack will fill up every slot to 64 while leaving the amount it couldn't decompress in the original slot. Recompressing each slot will leave one (nugget) in each slot, these all being extra that should not exist seemingly