Fixed dying on mounts causing a crash
This commit is contained in:
1 parent
c435e94ac8
commit
fcdb74f307
1 file changed
+3
@@ -17,6 +17,9 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
if (drawInfo.drawPlayer.dead || !drawInfo.drawPlayer.active)
|
||||
return;
|
||||
|
||||
drawInfo.drawPlayer.mount.Draw(drawInfo.DrawDataCache, 3, drawInfo.drawPlayer, drawInfo.Center - drawInfo.drawPlayer.Size * 0.5f, drawInfo.colorMount, drawInfo.playerEffect, drawInfo.shadow);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user