Terraria.Player.TryLandingOnDetonator C# (CSharp) Method

TryLandingOnDetonator() private method

private TryLandingOnDetonator ( ) : void
return void
        private void TryLandingOnDetonator()
        {
            if (this.whoAmI != Main.myPlayer || (double)this.velocity.Y < 3.0)
                return;
            Point point = Utils.ToTileCoordinates(this.Bottom + new Vector2(0.0f, 0.01f));
            Tile tileSafely = Framing.GetTileSafely(point.X, point.Y);
            if (!tileSafely.active() || (int)tileSafely.type != 411 || ((int)tileSafely.frameY != 0 || (int)tileSafely.frameX >= 36))
                return;
            Wiring.HitSwitch(point.X, point.Y);
            NetMessage.SendData(59, -1, -1, "", point.X, (float)point.Y, 0.0f, 0.0f, 0, 0, 0);
        }
Player