use rawget to test of enabled mods

master
A. Demant 2019-02-20 15:58:31 +01:00
parent 83783fb92c
commit 84711c1c6b
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
if minetest.get_modpath("awards") and minetest.get_modpath("xpfw") then
if rawget(_G, "awards") and rawget(_G, "xpfw") then
for i,aw_def in ipairs(statistic_awards.hiking) do
local awdef={