BlockMen / hunger

Hunger mechanics for Minetest; needs Better HUD (https://github.com/BlockMen/hud)
GNU Lesser General Public License v2.1
8 stars 3 forks source link

Crash when player named "save" logs in and plays #5

Closed est31 closed 9 years ago

est31 commented 9 years ago

When a player named "save" logs in, you get a crash after some time:

2015-10-17 18:50:46: ERROR[Main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:
2015-10-17 18:50:46: ERROR[Main]: Runtime error from mod 'hunger' in callback environment_Step(): hunger/functions.lua:58: attempt to call field 'save' (a table value)
2015-10-17 18:50:46: ERROR[Main]: stack traceback:
2015-10-17 18:50:46: ERROR[Main]:      hunger/functions.lua:58: in function 'update_hu
nger'
2015-10-17 18:50:46: ERROR[Main]:       hunger/functions.lua:133: in function <hunger/functions.lua:109>
2015-10-17 18:50:46: ERROR[Main]:       builtin/game/register.lua:355: in function <builtin/game/register.lua:335>
BlockMen commented 9 years ago

Fixed by c1e604c140a9b0efe5cbaedb24efe7262a55208b