added check to be sure creatura mod enabled

This commit is contained in:
tenplus1 2023-05-26 16:27:01 +01:00
parent 05f0550876
commit b42f7c63c8
1 changed files with 2 additions and 1 deletions

View File

@ -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"