From 74fc8110c14c1e68f78f9e26e6f1f0bf0e82fc02 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 29 Aug 2021 10:49:33 +0100 Subject: [PATCH] add switch to disable nyan cat "dmobs.allow_nyanc" --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 755c3e5..79214a9 100644 --- a/init.lua +++ b/init.lua @@ -13,6 +13,9 @@ dofile(dpath .. "api.lua") dmobs.dragons = minetest.settings:get_bool("dmobs.dragons", true) dmobs.regulars = minetest.settings:get_bool("dmobs.regulars", true) +-- Enable NyanCat +dmobs.allow_nyanc = minetest.settings:get_bool("dmobs.allow_nyanc", true) + -- Enable fireballs/explosions dmobs.destructive = minetest.settings:get_bool("dmobs.destructive", false) @@ -48,7 +51,11 @@ if dmobs.regulars then dofile(dpath .. "mobs/panda.lua") dofile(dpath .. "mobs/tortoise.lua") dofile(dpath .. "mobs/golem_friendly.lua") - dofile(dpath .. "mobs/nyan.lua") + + if dmobs.allow_nyanc then + dofile(dpath .. "mobs/nyan.lua") + end + dofile(dpath .. "mobs/gnorm.lua") dofile(dpath .. "mobs/hedgehog.lua") dofile(dpath .. "mobs/owl.lua")