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

◆ PlaceThing_Tiles_BlockPlacementForRepeatedPigronatas()

static void Terraria.Player.PlaceThing_Tiles_BlockPlacementForRepeatedPigronatas ( ref bool canPlace,
ref TileObject data )
inlinestaticprivate

Definition at line 40155 of file Player.cs.

40156 {
40157 if (data.type != 454)
40158 {
40159 return;
40160 }
40161 for (int i = -2; i < 2; i++)
40162 {
40163 Tile tile = Main.tile[tileTargetX + i, tileTargetY];
40164 if (tile.active() && tile.type == 454)
40165 {
40166 canPlace = false;
40167 }
40168 }
40169 }
static int tileTargetY
Definition Player.cs:2652
static int tileTargetX
Definition Player.cs:2650

References Terraria.Tile.active(), Terraria.Main.tile, Terraria.Player.tileTargetX, Terraria.Player.tileTargetY, and Terraria.Tile.type.

Referenced by Terraria.Player.PlaceThing_Tiles().

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