Fix child mobs collision boxes

This commit is contained in:
cora 2022-07-08 05:08:06 +02:00
parent 08a1ecd879
commit de9056ae62

View file

@ -298,9 +298,13 @@ local function update_roll(self)
if is_Fleckenstein then if is_Fleckenstein then
cbox[2], cbox[5] = -cbox[5], -cbox[2] cbox[2], cbox[5] = -cbox[5], -cbox[2]
self.object:set_properties({collisionbox = cbox})
-- This leads to child mobs having the wrong collisionbox
-- and seeing as it seems to be nothing but an easter egg
-- i've put it inside the if. Which just makes it be upside
-- down lol.
end end
self.object:set_properties({collisionbox = cbox})
end end
-- set and return valid yaw -- set and return valid yaw