mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-08 08:50:20 +01:00
restore mobs:boom order
This commit is contained in:
parent
ca76558edd
commit
e17ea86bf5
6
api.lua
6
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
|
||||
|
2
api.txt
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user