Schematiccannon dupes schematics if you remove the input before it finishes
Twisted-Code opened this issue ยท 1 comments
Describe the Bug
When schematiccann on begins a job, it copies the schematic data so that you can remove the input schematic. However, if you remove the input schematic and don't put it back before the job finishes, it will still output and empty schematic even though it was unable to consume the absent input. This means you can get extra schematics for free, which while generally kind of minor, could be kind of big if for some reason paper and/or cyan dye are more scarce than they are in vanilla.
Reproduction Steps
- Upload a schematic
- Position the schematic
- Place the schematic in a Schematiccannon
- Start the job, preferably making sure it's missing at least one item it needs so that the job doesn't finish before the next step
- Remove the non-blank schematic from the input
- let the job finish, providing any blocks needed and so forth
- you'll get an additional blank schematic even though you started with 1
...
Expected Result
Don't produce a blank schematic if the input is absent. Perhaps the last tick the canon runs should have a method that takes any non-blank schematic OR minecraft:air and branches accordingly? Then the output of the blank is more directly tied to the input's presence.
Screenshots and Videos
No response
Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.1d
Minecraft Version
1.20.1
Other Mods
Everything in this version of walksanatora/HexxyTestPack
Additional Context
No response