mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
fix tnt explosion causing mobs to attack themselves
This commit is contained in:
parent
d125d0a5db
commit
9dd4ac770f
5
api.lua
5
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20200521",
|
version = "20200525",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
@ -1222,7 +1222,8 @@ local entity_physics = function(pos, radius)
|
|||||||
local ent = objs[n]:get_luaentity()
|
local ent = objs[n]:get_luaentity()
|
||||||
|
|
||||||
-- punches work on entities AND players
|
-- punches work on entities AND players
|
||||||
objs[n]:punch(objs[n], 1.0, {
|
-- objs[n]:punch(objs[n], 1.0, {
|
||||||
|
objs[n]:punch(nil, 1.0, {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
damage_groups = {fleshy = damage},
|
damage_groups = {fleshy = damage},
|
||||||
}, pos)
|
}, pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user