mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
added check to be sure creatura mod enabled
This commit is contained in:
parent
05f0550876
commit
b42f7c63c8
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user