The-Fireplace-Minecraft-Mods / Clans

A Minecraft land protection and PVP mod
https://www.curseforge.com/minecraft/mc-mods/clans
GNU General Public License v3.0
5 stars 10 forks source link

Insufficient funds show the wrong price #279

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the bug Instead of showing the price for the next chunk it shows for the previous, for example, with the formula "c*10000" the first chunk costs 10000, the second 20000, but when you go claim the second one with 10000, the mod outputs that you need 10000 and if you have 20000 in your wallet, then it claims that chunk as it should.

To Reproduce Steps to reproduce the behavior:

  1. Set formula for claims to "c*10000"
  2. Claim the first chunk for 10000
  3. Claim the seconds chunk for 20000 without enough funds
  4. Observe the mod requesting 10000 for the seconds claim, even though it will only take 20000 if you have them

Versions (please complete the following information, do NOT say "latest"):