From f7b3bc144ebdee3890fba0b9efcf44a73db23453 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 12 May 2020 16:41:54 -0400 Subject: [PATCH] fixed right-anchored eutrophic shelves --- Tiles/Furniture/CraftingStations/EutrophicCrafting.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs index f827db57a8..6b82e62c47 100644 --- a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs +++ b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs @@ -19,15 +19,16 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); TileObjectData.newTile.StyleHorizontal = true; // Remove the bottom anchor entirely, this thing hangs from the wall. - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.None, 0, 0); + TileObjectData.newTile.AnchorBottom = AnchorData.Empty; TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 2, 1); // When this Direction property set executes, newTile._tileObjectBase gets separated from Style3x3._tileObjectBase. // As such, no data corruption occurs. TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); - // Add a wall anchor on the opposite side for the alternate style. + // Add a wall anchor on the opposite side for the alternate style, and remove the wall anchor that was on the first side. TileObjectData.newAlternate.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 1); + TileObjectData.newAlternate.AnchorRight = AnchorData.Empty; // This line used to corrupt TileObjectData.Style3x3.Direction to PlaceRight. This has now been fixed. TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight;