diff --git a/systems/collision-detection.lua b/systems/collision-detection.lua index a0442fe..97a6528 100644 --- a/systems/collision-detection.lua +++ b/systems/collision-detection.lua @@ -34,7 +34,12 @@ world:filteredSystem( and bit.band(collider.canCollideWith, e.canBeCollidedBy) ~= 0 then if intersects(e, collider) then - system.world:addEntity({ collisionBetween = { collider = collider, collidedInto = e } }) + system.world:addEntity({ + collisionBetween = { + collider = collider, + collidedInto = e + } + }) end end end