BentoBoxWorld / Upgrades

BentoBox Addon for upgrading island with the use of Vault Money
5 stars 4 forks source link

InventoryClickEvent error #11

Closed myavuzokumus closed 4 years ago

myavuzokumus commented 4 years ago

Description

Describe the bug

image

Environment

Output of /bbox version (Mandatory)

image

Guillaume-Lebegue commented 4 years ago

Well, I didn't yet look for compatibility with 1.16.

I will look for the compatibility after I have finished my other task.

BONNe commented 4 years ago

It looks like there is '-' (negative) cost applied to some upgrade.

Guillaume-Lebegue commented 4 years ago

Oh, yes, for the money cost. What is your configuration ?

myavuzokumus commented 4 years ago

config.zip

Guillaume-Lebegue commented 4 years ago

Which upgrade is doing this bug? All?

myavuzokumus commented 4 years ago

Island levels drop when they break their islands completely. Multiply by the number you want, but it will be - as it will be the price.

[numberPlayer][islandLevel][level]*50

if islandlevel its -3 or anythink it will be - cost.

Guillaume-Lebegue commented 4 years ago

Oh right, sometimes level return negative level. I guess I'll add a check to set a default level to 1

Guillaume-Lebegue commented 4 years ago

I have set a default island level to 0. Like the level addon on default.

So be careful, using * with island level may result in 0