mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
entity cramming: spare the children
This commit is contained in:
parent
85b599edba
commit
fb4f21cba0
1 changed files with 1 additions and 1 deletions
|
@ -2982,7 +2982,7 @@ local function check_entity_cramming(self)
|
||||||
local l = o:get_luaentity()
|
local l = o:get_luaentity()
|
||||||
if l and clear then
|
if l and clear then
|
||||||
l.cram = nil
|
l.cram = nil
|
||||||
elseif l and l.cram == nil then
|
elseif l and l.cram == nil and not self.child then
|
||||||
table.insert(ncram,l)
|
table.insert(ncram,l)
|
||||||
elseif not clear and l and l.cram then
|
elseif not clear and l and l.cram then
|
||||||
damage_mob(l,"cramming",cramming_damage)
|
damage_mob(l,"cramming",cramming_damage)
|
||||||
|
|
Loading…
Reference in a new issue