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

◆ CanCutTile()

static bool Terraria.WorldGen.CanCutTile ( int x,
int y,
TileCuttingContext context )
inlinestatic

Definition at line 80549 of file WorldGen.cs.

80550 {
80551 if (Main.tile[x, y + 1] != null && Main.tile[x, y + 1].type != 78 && Main.tile[x, y + 1].type != 380 && Main.tile[x, y + 1].type != 579)
80552 {
80553 if (Main.tile[x, y].type == 254)
80554 {
80555 return Main.tile[x, y].frameX >= 144;
80556 }
80557 return true;
80558 }
80559 return false;
80560 }

References Terraria.Main.tile.

Referenced by Terraria.DelegateMethods.CutTiles(), Terraria.Projectile.CutTilesAt(), Terraria.Projectile.HandleMovement(), Terraria.Player.ItemCheck_CutTiles(), Terraria.Player.PlaceThing_Tiles_BlockPlacementForRepeatedPumpkins(), and Terraria.GameContent.SmartCursorHelper.Step_PumpkinSeeds().

+ Here is the caller graph for this function: