From b42f7c63c864fd5c53d2a623be96e6a2c83b14d6 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 26 May 2023 16:27:01 +0100 Subject: [PATCH] added check to be sure creatura mod enabled --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index d660381..d7af22b 100644 --- a/api.lua +++ b/api.lua @@ -129,7 +129,8 @@ end local aoc_range = tonumber(settings:get("active_block_range")) * 16 -- can we attack Creatura mobs ? -local creatura = settings:get_bool("mobs_attack_creatura") == true +local creatura = minetest.get_modpath("creatura") and + settings:get_bool("mobs_attack_creatura") == true -- default nodes local node_ice = "default:ice"