ElenaiDev / Feathers

Adds a Stamina System to Minecraft
GNU General Public License v3.0
2 stars 8 forks source link

Setting Feather Cooldown at a higher value disables feather regeneration #40

Open Kevadroz opened 8 months ago

Kevadroz commented 8 months ago

Setting the "feather cooldown" config to a value higher than when it was when a PlayerFeathers Object was created disables regeneration for that Player, requiring The reinstancing of the Player entity (relog) to reenable the regeneration. This is due to the maxcooldown field only being set on the creation of the Object, causing the addCooldown method to cap the cooldown to the old max value and thus never reaching the new config value.