From a6bb31f2a604050c054572f70bfce8dc404519be Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Jun 2018 16:09:28 +0200 Subject: [PATCH] Fix explo mobs destroy land if mobs_griefing=false --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- settingtypes.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 2df486348a..86ab790331 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1959,7 +1959,7 @@ local do_states = function(self, dtime) self.object:remove() - if mod_tnt and tnt and tnt.boom + if mobs_griefing and mod_tnt and tnt and tnt.boom and not minetest.is_protected(pos, "") then tnt.boom(pos, { diff --git a/settingtypes.txt b/settingtypes.txt index d46fdce812..153c34fac3 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -46,7 +46,7 @@ only_peaceful_mobs (Spawn only peaceful mobs) bool false # If enabled, mobs might drop items when they die. mobs_drop_items (Mobs drop items) bool true -# If enabled, mobs can take and place blocks around them. +# If enabled, mobs can take, place, change and destroy blocks around them. mobs_griefing (Mobs change blocks) bool true # If enabled, players respawn at the bed they last lay on instead of normal