From f7b3bc144ebdee3890fba0b9efcf44a73db23453 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 12 May 2020 16:41:54 -0400 Subject: [PATCH 1/2] 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; From 02ea262bf28d0b29817df89f48b68bd6f36e0422 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 12 May 2020 16:54:26 -0400 Subject: [PATCH 2/2] a warning for the future --- Tiles/Furniture/CraftingStations/EutrophicCrafting.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs index 6b82e62c47..e6995b91ea 100644 --- a/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs +++ b/Tiles/Furniture/CraftingStations/EutrophicCrafting.cs @@ -10,6 +10,11 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations { public class EutrophicCrafting : ModTile { + // + // Note from Ozzatron: + // It's highly recommended you don't touch this code unless absolutely necessary. + // Even slightly changing the way that this tile initializes could re-introduce the Ancients Awakened worldgen bug. + // public override void SetDefaults() { Main.tileLighted[Type] = true;