Browse Source

Fix explo mobs destroy land if mobs_griefing=false

Wuzzy 7 months ago
parent
commit
a6bb31f2a6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      mods/ENTITIES/mcl_mobs/api.lua
  2. 1
    1
      settingtypes.txt

+ 1
- 1
mods/ENTITIES/mcl_mobs/api.lua View File

@@ -1959,7 +1959,7 @@ local do_states = function(self, dtime)
1959 1959
 
1960 1960
 					self.object:remove()
1961 1961
 
1962
-					if mod_tnt and tnt and tnt.boom
1962
+					if mobs_griefing and mod_tnt and tnt and tnt.boom
1963 1963
 					and not minetest.is_protected(pos, "") then
1964 1964
 
1965 1965
 						tnt.boom(pos, {

+ 1
- 1
settingtypes.txt View File

@@ -46,7 +46,7 @@ only_peaceful_mobs (Spawn only peaceful mobs) bool false
46 46
 # If enabled, mobs might drop items when they die.
47 47
 mobs_drop_items (Mobs drop items) bool true
48 48
 
49
-# If enabled, mobs can take and place blocks around them.
49
+# If enabled, mobs can take, place, change and destroy blocks around them.
50 50
 mobs_griefing (Mobs change blocks) bool true
51 51
 
52 52
 # If enabled, players respawn at the bed they last lay on instead of normal

Loading…
Cancel
Save