MinetestForFun / server-minetestforfun

Repository of the subgame and mods of "MinetestForFun" server
https://www.xorhub.com
The Unlicense
27 stars 10 forks source link

Mana sticks at 0 #470

Closed Cyberpangolin closed 8 years ago

Cyberpangolin commented 8 years ago

Event in the sunlight, it's impossible to have any mana point, at least as adventurer or hunter.

If they are supposed not to have mana anymore, I suggest to remove it totally from the HUD; if it's only a loading mana bug, it needs to be fixed.

Lymkwi commented 8 years ago

This is another of those insane cases of "works on local server but not on prod". I have to find out why though.

Lymkwi commented 8 years ago

I found my answer. It seems that mana's system saves the regen of players. If a player has ever been disconnected while under the earth, their regen will be at 0, and no code will bring it back to 3. @Ombridride just needs to remove mana.mt from the world's directory.

BetterToAutomateTheWorld commented 8 years ago

I erased it, the next reboot will solve this issue.

Lymkwi commented 8 years ago

I'll also work on a single-file-per-user storage system, since mana loads everyone's data (all players').