mt-mods / home_workshop_modpack

A simple modpack containing computers, tools, machines, etc. Most things herein are just decorative... for now.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server crash when travelling with a beer tap

ymph opened this issue · comments

Hello,

We have stumbled on the following error in our server log after a crash.
It is difficult to know what kind of action can lead to this situation, however it seems to stem from an interaction of a beer tap and a "travelnet" transporter :

minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod '??' in callback on_playerReceiveFields(): ...j/mods/home_workshop_modpack/home_workshop_misc/init.lua:48: attempt to index local 'itemstack' (a nil value)
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: stack traceback:
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...j/mods/home_workshop_modpack/home_workshop_misc/init.lua:48: in function 'right_click_action'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...l/share/minetest/games/unej/mods/travelnet/functions.lua:271: in function 'open_close_door'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...t/games/unej/mods/travelnet/actions/transport_player.lua:58: in function 'action'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...minetest/games/unej/mods/travelnet/on_receive_fields.lua:161: in function 'fn'
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	...t/games/unej/mods/monitoring/builtin/received_fields.lua:22: in function <...t/games/unej/mods/monitoring/builtin/received_fields.lua:20>
minetest_1   | 2023-03-10 13:55:57: ERROR[Main]: 	/usr/local/share/minetest/builtin/game/register.lua:431: in function </usr/local/share/minetest/builtin/game/register.lua:417>

We are going to submit you a simple correction that check that the handle "itemstack" is not nil before trying to access properties on it.

Regards,

commented

A screenshot would be helpful Edit: reproduced

Thank you very much !