From f9b936a7260eba2f485d1e3e452788d56add06b3 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 10 Aug 2022 19:19:22 +0200 Subject: [PATCH] fix(world): fix hitbox type --- birb/modules/world/actors/mixins/physics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birb/modules/world/actors/mixins/physics.lua b/birb/modules/world/actors/mixins/physics.lua index 8b6a143..2b99ed5 100644 --- a/birb/modules/world/actors/mixins/physics.lua +++ b/birb/modules/world/actors/mixins/physics.lua @@ -185,7 +185,7 @@ function PhysicalActor:addHitboxFromFrameData(framedata, animationID, frameID, h if (hitbox.type == "main") then self.mainHitbox:setFromData(hitbox.box, sx, sy) else - local hitboxName = anim .. frame .. type .. id + local hitboxName = anim .. frame .. hitbox.type .. id self:addHitbox(hitboxName, hitbox.type, hitbox.box, sx, sy, hitbox.isSolid) return hitboxName end