diff --git a/tubetool/init.lua b/tubetool/init.lua index bdabb86..b0c5270 100644 --- a/tubetool/init.lua +++ b/tubetool/init.lua @@ -29,6 +29,10 @@ local tool = metatool:register_tool('tubetool', { -- Create namespace containing tubetool common functions tool:ns({ pipeworks_tptube_api_check = function(player) + if type(pipeworks) ~= "table" then + minetest.chat_send_player(player:get_player_name(), 'Pipeworks mod not installed.') + return false + end if not pipeworks.tptube or not pipeworks.tptube.get_db then minetest.chat_send_player( player:get_player_name(),