fix(world): fix hitbox type

This commit is contained in:
Kazhnuz 2022-08-10 19:19:22 +02:00
parent 3cb6c61cac
commit f9b936a726

View file

@ -185,7 +185,7 @@ function PhysicalActor:addHitboxFromFrameData(framedata, animationID, frameID, h
if (hitbox.type == "main") then if (hitbox.type == "main") then
self.mainHitbox:setFromData(hitbox.box, sx, sy) self.mainHitbox:setFromData(hitbox.box, sx, sy)
else 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) self:addHitbox(hitboxName, hitbox.type, hitbox.box, sx, sy, hitbox.isSolid)
return hitboxName return hitboxName
end end