diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 619c3f0da6..1ebde0812a 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -1153,7 +1153,7 @@ namespace CalamityMod.ILEditing orig(self, drawData, solidLayer, waterStyleOverride, screenPosition, screenOffset, tileX, tileY); var type = drawData.typeCache; - if (type < 0 || type >= GlowMaskTile.LookupLength) + if (type >= GlowMaskTile.LookupLength) return; var glowMaskTile = GlowMaskTile.InstanceLookup[type]; diff --git a/NPCs/VanillaNPCAIOverrides/RegularEnemies/RevengeanceAndDeaths/FlyingAI.cs b/NPCs/VanillaNPCAIOverrides/RegularEnemies/RevengeanceAndDeaths/FlyingAI.cs index 9dd39b20b9..1c582877aa 100644 --- a/NPCs/VanillaNPCAIOverrides/RegularEnemies/RevengeanceAndDeaths/FlyingAI.cs +++ b/NPCs/VanillaNPCAIOverrides/RegularEnemies/RevengeanceAndDeaths/FlyingAI.cs @@ -269,9 +269,9 @@ public static partial class RevengeanceAndDeathAI } if (targetData.Center.X - NPC.Center.X > 0f) - NPC.spriteDirection = -1; - else NPC.spriteDirection = 1; + else + NPC.spriteDirection = -1; NPC.rotation = NPC.velocity.X * 0.1f;