diff --git a/api.lua b/api.lua index 462ba5f..d7fa658 100644 --- a/api.lua +++ b/api.lua @@ -19,7 +19,7 @@ end mobs = { mod = "redo", - version = "20241121", + version = "20241122", spawning_mobs = {}, translate = S, node_snow = has(minetest.registered_aliases["mapgen_snow"]) @@ -2349,7 +2349,7 @@ function mob_class:do_states(dtime) remove_mob(self, true) - mobs:boom(self, pos, entity_damage_radius, node_break_radius) + mobs:boom(self, pos, node_break_radius, entity_damage_radius) return true end @@ -4182,7 +4182,7 @@ end -- make explosion with protection and tnt mod check -function mobs:boom(self, pos, entity_radius, node_damage_radius, texture) +function mobs:boom(self, pos, node_damage_radius, entity_radius, texture) if mobs_griefing and minetest.get_modpath("tnt") and tnt and tnt.boom and not minetest.is_protected(pos, "") then diff --git a/api.txt b/api.txt index 4e919be..4a26824 100644 --- a/api.txt +++ b/api.txt @@ -619,7 +619,7 @@ Explosion Function mobs:explosion(pos, radius) -- DEPRECATED!!! use mobs:boom() instead -mobs:boom(self, pos, entity_radius, damage_radius, texture) +mobs:boom(self, pos, damage_radius, entity_radius, texture) 'self' mob entity 'pos' centre position of explosion 'damage_radius' radius of node damage (typically 3)