diff --git a/Tiles/SunkenSea/SuperheatedObsidian.cs b/Tiles/SunkenSea/SuperheatedObsidian.cs index f31ecf6212..4831d4a862 100644 --- a/Tiles/SunkenSea/SuperheatedObsidian.cs +++ b/Tiles/SunkenSea/SuperheatedObsidian.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; using Terraria; +using Terraria.GameContent; using Terraria.ID; using Terraria.ModLoader; @@ -13,14 +14,12 @@ namespace CalamityMod.Tiles.SunkenSea { public class SuperheatedObsidian : ModTile { - public Asset TileTexture; public Asset GlintTexture; public Vector2 GlintDir; public override void SetStaticDefaults() { - TileTexture = ModContent.Request(Texture + "_Tile"); GlintTexture = ModContent.Request(Texture + "_Glint"); GlintDir = new Vector2(1f, 1f); @@ -71,14 +70,10 @@ namespace CalamityMod.Tiles.SunkenSea Main.tileBlockLight[Type] = false; Tile tile = Main.tile[i, j]; - int xPos = i % 1; - int yPos = j % 1; - int frameXOffset = xPos * 1; - int frameYOffset = yPos * 1; - Rectangle frame = new Rectangle(tile.TileFrameX + frameXOffset, tile.TileFrameY + frameYOffset, 16, 16); + Rectangle frame = new Rectangle(tile.TileFrameX, tile.TileFrameY, 16, 16); Color color = Lighting.GetColor(i, j) * transparency; - TileFramingSystem.SlopedGlowmask(in tile, i, j, TileTexture.Value, frame, CalamityUtils.ApplyPaint(Main.tile[i, j].TileColor, color, false), default); + TileFramingSystem.SlopedGlowmask(in tile, i, j, TextureAssets.Tile[Type].Value, frame, CalamityUtils.ApplyPaint(tile.TileColor, color, false), default); //IF this glint effect below runs poorly on lower end PC's we should keep it as a setting for those with good PC's @@ -109,7 +104,8 @@ namespace CalamityMod.Tiles.SunkenSea spriteBatch.Draw(GlintTexture.Value, position, frame, lightColor * strength, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f); } } - return true; + + return false; } } } diff --git a/Tiles/SunkenSea/SuperheatedObsidian.png b/Tiles/SunkenSea/SuperheatedObsidian.png index 9fc5ba9d95..63b6ac62c8 100644 Binary files a/Tiles/SunkenSea/SuperheatedObsidian.png and b/Tiles/SunkenSea/SuperheatedObsidian.png differ diff --git a/Tiles/SunkenSea/SuperheatedObsidian_Tile.png b/Tiles/SunkenSea/SuperheatedObsidian_Tile.png deleted file mode 100644 index 63b6ac62c8..0000000000 Binary files a/Tiles/SunkenSea/SuperheatedObsidian_Tile.png and /dev/null differ