TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ CheckAndInjectModSapling()

static void Terraria.ModLoader.PlantLoader.CheckAndInjectModSapling ( int x,
int y,
ref int tileToCreate,
ref int previewPlaceStyle )
inlinestatic

Definition at line 112 of file PlantLoader.cs.

113 {
114 if (tileToCreate == 20)
115 {
116 Tile soil = Main.tile[x, y + 1];
117 if (soil.active())
118 {
119 TileLoader.SaplingGrowthType(soil.type, ref tileToCreate, ref previewPlaceStyle);
120 }
121 }
122 }

References Terraria.ModLoader.TileLoader.SaplingGrowthType(), and Terraria.Main.tile.

Referenced by Terraria.Player.PlaceThing_Tiles(), Terraria.Player.TryReplantingTree(), and Terraria.Player.UpdatePlacementPreview().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: