replace global_exists with get_modpath

related: #97
This commit is contained in:
OgelGames
2023-11-21 14:35:51 +11:00
parent dc77d1056c
commit 7c74d0bdf3
3 changed files with 3 additions and 3 deletions

View File

@ -425,7 +425,7 @@ end
-- itbl: Flat table of functions to run after sandbox cleanup, used to prevent various security hazards
local function get_digiline_send(pos, itbl, send_warning)
if not minetest.global_exists("digilines") then return end
if not minetest.get_modpath("digilines") then return end
local chan_maxlen = mesecon.setting("luacontroller_digiline_channel_maxlen", 256)
local maxlen = mesecon.setting("luacontroller_digiline_maxlen", 50000)
return function(channel, msg)