ChimneySwift / fancy_vend

A full-featured, fully-integrated vendor mod for Minetest.
MIT License
12 stars 10 forks source link

input sanity error #3

Closed thomasrudin closed 6 years ago

thomasrudin commented 6 years ago

I've got an error on my server:

minetest_1                 | 2018-10-14 14:57:18: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'fancy_vend' in callback on_playerReceiveFields(): /data/world//worldmods/fancy_vend/init.lua:1032: bad argument #1 to 'abs' (number expected, got string)
minetest_1                 | 2018-10-14 14:57:18: ERROR[Main]: stack traceback:
minetest_1                 | 2018-10-14 14:57:18: ERROR[Main]:  [C]: in function 'abs'
minetest_1                 | 2018-10-14 14:57:18: ERROR[Main]:  /data/world//worldmods/fancy_vend/init.lua:1032: in function </data/world//worldmods/fancy_vend/init.lua:1008>
minetest_1                 | 2018-10-14 14:57:18: ERROR[Main]:  /usr/local/bin/../builtin/game/register.lua:420: in function </usr/local/bin/../builtin/game/register.lua:400>

Probably an issue with input sanitation...

ChimneySwift commented 6 years ago

Wow.... Sorry, that's a dumb mistake.

thomasrudin commented 6 years ago

No problem, it happens. I'm just dumping that here because i didn't come around to make a fix and pull-request :smile:

ChimneySwift commented 6 years ago

Problem should be solved now, thanks for the issue.