Open ProgrammerDan opened 8 years ago
The issue here is that /ctr and /ctf and the newfriend commandfree reinforcing call the same reinforcement method. I made it so it consumes offhand first (previously it was completly ignored) with the feature in mind where they can just put the reinforcement material in offhand and place, if the material wouldnt get consumed from offhand there, it might be weird. Not sure whats the best solution here.
Few notes:
These are for myself; I'll be addressing these issues shortly.
Sounds like spigot fixed the bug where it would not consume enough. Obly took them 2 years....
Is that only with off hand though? What happens if you ctf and place with primary hand.
Only offhand, so it's some new special logic. Yay!
The normal material consumption code would only iterate over the inventory (which doesn't include offhand, armour slots and crafting inventory), so I added special handling for the off hand slot, but seems like I messed something up for forgot to change something
Yeah, not a problem. I missed it for two weeks myself :D I'd always rather over-consume then under (yay dupes!) so I'm not as worried here.
If you have only reinforcement materials in the offhand and none in inventory, fortification mode exits on next block placement attempt.
Similarly offhand is consumed first vs. expectation (inventory consumed first) on fortify.
/ctf should consume from main inventory first and offhand last.