mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-27 04:24:35 +02:00
added check to be sure creatura mod enabled
This commit is contained in:
3
api.lua
3
api.lua
@ -129,7 +129,8 @@ end
|
|||||||
local aoc_range = tonumber(settings:get("active_block_range")) * 16
|
local aoc_range = tonumber(settings:get("active_block_range")) * 16
|
||||||
|
|
||||||
-- can we attack Creatura mobs ?
|
-- 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
|
-- default nodes
|
||||||
local node_ice = "default:ice"
|
local node_ice = "default:ice"
|
||||||
|
Reference in New Issue
Block a user